[llvm-commits] [llvm] r55376 - /llvm/trunk/utils/TableGen/FastISelEmitter.cpp
Owen Anderson
resistor at mac.com
Tue Aug 26 11:50:01 PDT 2008
Author: resistor
Date: Tue Aug 26 13:50:00 2008
New Revision: 55376
URL: http://llvm.org/viewvc/llvm-project?rev=55376&view=rev
Log:
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.
Modified:
llvm/trunk/utils/TableGen/FastISelEmitter.cpp
Modified: llvm/trunk/utils/TableGen/FastISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FastISelEmitter.cpp?rev=55376&r1=55375&r2=55376&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FastISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FastISelEmitter.cpp Tue Aug 26 13:50:00 2008
@@ -437,6 +437,9 @@
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;
More information about the llvm-commits
mailing list