From: Duncan Sands Date: Mon, 7 Jan 2008 19:14:42 +0000 (+0000) Subject: I doubt the address of the Error string was intended X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6aae7a748edcdf421b12fe4a66c0e68be48505f2;p=oota-llvm.git I doubt the address of the Error string was intended to be used for the force_interpreter parameter... Spotted by gcc-4.2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45714 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/lib/ExecutionEngine/ExecutionEngineBindings.cpp index bcb72ea9449..26e0d414166 100644 --- a/lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ b/lib/ExecutionEngine/ExecutionEngineBindings.cpp @@ -101,7 +101,8 @@ int LLVMCreateInterpreter(LLVMExecutionEngineRef *OutInterp, LLVMModuleProviderRef MP, char **OutError) { std::string Error; - if (ExecutionEngine *Interp = ExecutionEngine::create(unwrap(MP), &Error)) { + if (ExecutionEngine *Interp = + ExecutionEngine::create(unwrap(MP), false, &Error)) { *OutInterp = wrap(Interp); return 0; }