diff options
author | Owen Anderson <resistor@mac.com> | 2008-08-26 18:50:00 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-08-26 18:50:00 +0000 |
commit | 357d4c25a71efc3ae02ddf13c9a21a809395529a (patch) | |
tree | dd1ef88e6cc3feb5a9a1642cbee4777ecb2e3feb /utils/TableGen | |
parent | 9fa72d9078dbead41d24462d0588135804999171 (diff) | |
download | external_llvm-357d4c25a71efc3ae02ddf13c9a21a809395529a.zip external_llvm-357d4c25a71efc3ae02ddf13c9a21a809395529a.tar.gz external_llvm-357d4c25a71efc3ae02ddf13c9a21a809395529a.tar.bz2 |
We need to check that the return type is correct, even in cases where we don't
have a return type that differs from the operand types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/FastISelEmitter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp index c9978e5..20b39c6 100644 --- a/utils/TableGen/FastISelEmitter.cpp +++ b/utils/TableGen/FastISelEmitter.cpp @@ -437,6 +437,9 @@ void FastISelEmitter::run(std::ostream &OS) { Operands.PrintParameters(OS); OS << ") {\n"; + OS << " if (RetVT != " << getName(RM.begin()->first) + << ")\n return 0;\n"; + const PredMap &PM = RM.begin()->second; bool HasPred = false; |