From: Evan Cheng Date: Tue, 2 Sep 2008 08:14:01 +0000 (+0000) Subject: MMI may be null. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=252ddfbdbc834d1abe80de9c2205afac7918d3ea;p=oota-llvm.git MMI may be null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55626 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 3b96a78bfc0..da4cd095fad 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -965,7 +965,9 @@ bool JITEmitter::finishFunction(MachineFunction &F) { TheJIT->RegisterTable(FrameRegister); } - MMI->EndFunction(); + + if (MMI) + MMI->EndFunction(); return false; }