projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
940f83e
)
We need to check that the return type is correct, even in cases where we don't
author
Owen Anderson
<resistor@mac.com>
Tue, 26 Aug 2008 18:50:00 +0000
(18:50 +0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 26 Aug 2008 18:50:00 +0000
(18:50 +0000)
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
utils/TableGen/FastISelEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/FastISelEmitter.cpp
b/utils/TableGen/FastISelEmitter.cpp
index c9978e5311c84c5894c16ea02b4186f76f9893e4..20b39c6089ff88b1accdc72e73ab62c8977b88e1 100644
(file)
--- 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;