diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-02 08:14:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-02 08:14:01 +0000 |
commit | 252ddfbdbc834d1abe80de9c2205afac7918d3ea (patch) | |
tree | 54409a9e2616e28ed0960b065ba66092bc6444b5 /lib/ExecutionEngine | |
parent | 95ce1178e40d232cbf8d134030c3dcc8474c704d (diff) | |
download | external_llvm-252ddfbdbc834d1abe80de9c2205afac7918d3ea.zip external_llvm-252ddfbdbc834d1abe80de9c2205afac7918d3ea.tar.gz external_llvm-252ddfbdbc834d1abe80de9c2205afac7918d3ea.tar.bz2 |
MMI may be null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 3b96a78..da4cd09 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; } |