mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Attempt to fix a crash on WIN32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24936 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1124,7 +1124,7 @@ void DAGISelEmitter::ParseInstructions() {
|
||||
|
||||
CodeGenInstruction &InstInfo =Target.getInstruction(Instrs[i]->getName());
|
||||
|
||||
// Note: Removed if (InstInfo.OperandList.size() == 0) continue;
|
||||
if (InstInfo.OperandList.size() != 0) {
|
||||
// It's possible for some instruction, e.g. RET for X86 that only has an
|
||||
// implicit flag operand.
|
||||
// FIXME: temporary hack...
|
||||
@@ -1141,6 +1141,7 @@ void DAGISelEmitter::ParseInstructions() {
|
||||
for (unsigned j = 1, e = InstInfo.OperandList.size(); j < e; ++j)
|
||||
Operands.push_back(InstInfo.OperandList[j].Rec);
|
||||
}
|
||||
}
|
||||
|
||||
// Create and insert the instruction.
|
||||
std::vector<Record*> ImpResults;
|
||||
|
Reference in New Issue
Block a user