From f5e16139f28d650536024280a16dcf73513baf46 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Oct 2009 04:22:44 +0000 Subject: [PATCH] Fix PR5087, patch by Jakub Staszak! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83822 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineFunctionAnalysis.cpp | 1 + lib/Target/X86/X86CodeEmitter.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/MachineFunctionAnalysis.cpp b/lib/CodeGen/MachineFunctionAnalysis.cpp index ae9d5a99c04..56294d90398 100644 --- a/lib/CodeGen/MachineFunctionAnalysis.cpp +++ b/lib/CodeGen/MachineFunctionAnalysis.cpp @@ -30,6 +30,7 @@ MachineFunctionAnalysis::MachineFunctionAnalysis(TargetMachine &tm, } MachineFunctionAnalysis::~MachineFunctionAnalysis() { + releaseMemory(); assert(!MF && "MachineFunctionAnalysis left initialized!"); } diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index 6527dd70d92..f942f3f8510 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -587,8 +587,8 @@ void Emitter::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: