aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-01-15 10:04:45 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-01-15 10:04:45 +0000
commit37e9005db3efcd2a635ed0f84e8aee6b421fe007 (patch)
tree8fbb8731a0d4a6db23ce1ab583639d0aa1f1a13c /utils/TableGen
parent2e0348e18e01090230a3dba4185dac2edcde7da5 (diff)
downloadexternal_llvm-37e9005db3efcd2a635ed0f84e8aee6b421fe007.zip
external_llvm-37e9005db3efcd2a635ed0f84e8aee6b421fe007.tar.gz
external_llvm-37e9005db3efcd2a635ed0f84e8aee6b421fe007.tar.bz2
Type inferencing bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 97f7c15..2fbc096 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -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();