mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
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
This commit is contained in:
parent
940f83e772
commit
70647e81e3
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user