Type inferencing bug
authorEvan Cheng <evan.cheng@apple.com>
Sun, 15 Jan 2006 10:04:45 +0000 (10:04 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sun, 15 Jan 2006 10:04:45 +0000 (10:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25337 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index 97f7c15525382664307c6bcf623993f94bf3fa99..2fbc0966f3ed36011ca34f8590e0014bd9c287a6 100644 (file)
@@ -544,6 +544,8 @@ static std::vector<unsigned char> getIntrinsicType(Record *R, bool NotRegisters,
     // Pattern fragment types will be resolved when they are inlined.
     return Unknown;
   } else if (R->isSubClassOf("Register")) {
+    if (NotRegisters) 
+      return Unknown;
     // If the register appears in exactly one regclass, and the regclass has one
     // value type, use it as the known type.
     const CodeGenTarget &T = TP.getDAGISelEmitter().getTargetInfo();