mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Fix PR5087, patch by Jakub Staszak!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83822 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
885dffc391
commit
f5e16139f2
@ -30,6 +30,7 @@ MachineFunctionAnalysis::MachineFunctionAnalysis(TargetMachine &tm,
|
||||
}
|
||||
|
||||
MachineFunctionAnalysis::~MachineFunctionAnalysis() {
|
||||
releaseMemory();
|
||||
assert(!MF && "MachineFunctionAnalysis left initialized!");
|
||||
}
|
||||
|
||||
|
@ -587,8 +587,8 @@ void Emitter<CodeEmitter>::emitInstruction(const MachineInstr &MI,
|
||||
case TargetInstrInfo::INLINEASM:
|
||||
// We allow inline assembler nodes with empty bodies - they can
|
||||
// implicitly define registers, which is ok for JIT.
|
||||
assert(MI.getOperand(0).getSymbolName()[0] == 0 &&
|
||||
"JIT does not support inline asm!");
|
||||
if (MI.getOperand(0).getSymbolName()[0])
|
||||
llvm_report_error("JIT does not support inline asm!");
|
||||
break;
|
||||
case TargetInstrInfo::DBG_LABEL:
|
||||
case TargetInstrInfo::EH_LABEL:
|
||||
|
Loading…
Reference in New Issue
Block a user