diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-11-08 12:14:54 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-11-08 12:14:54 +0000 |
commit | c2fd919ea27eebc9630716cd3d66b4cb1241d26a (patch) | |
tree | e35681ab08e03e46d5414a52aac38275be97dcb7 /utils/TableGen | |
parent | d702c8c98064733bd69c636466b502ea1a3a2337 (diff) | |
download | external_llvm-c2fd919ea27eebc9630716cd3d66b4cb1241d26a.zip external_llvm-c2fd919ea27eebc9630716cd3d66b4cb1241d26a.tar.gz external_llvm-c2fd919ea27eebc9630716cd3d66b4cb1241d26a.tar.bz2 |
It is invalid to infer the value type from the result #0 of the node
since the instruction might use the other result of different type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index c3520c1..89b7400 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -1359,7 +1359,7 @@ public: Pat->setTypes(Other->getExtTypes()); // The top level node type is checked outside of the select function. if (!isRoot) - emitCheck(Prefix + ".getNode()->getValueType(0) == " + + emitCheck(Prefix + ".getValueType() == " + getName(Pat->getTypeNum(0))); return true; } |