From d14fac150d2d8da2cb828f25e00d7d3c971bf7fc Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Mon, 14 Jan 2013 21:45:38 +0000 Subject: Once a function has been JIT-compiled once, don't JIT it again. llvm-svn: 172477 --- lldb/source/Expression/ClangFunction.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/Expression/ClangFunction.cpp b/lldb/source/Expression/ClangFunction.cpp index fe4cca1fab4..49e09c4e7d2 100644 --- a/lldb/source/Expression/ClangFunction.cpp +++ b/lldb/source/Expression/ClangFunction.cpp @@ -277,6 +277,8 @@ ClangFunction::WriteFunctionWrapper (ExecutionContext &exe_ctx, Stream &errors) return false; if (process && m_jit_alloc != LLDB_INVALID_ADDRESS) m_jit_process_wp = lldb::ProcessWP(process->shared_from_this()); + + m_JITted = true; return true; } -- cgit v1.2.3