From c50c210d76888f12b8b6f22a64c22e75b6920b2c Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 7 Jan 2008 19:14:42 +0000 Subject: I doubt the address of the Error string was intended to be used for the force_interpreter parameter... Spotted by gcc-4.2. llvm-svn: 45714 --- llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/ExecutionEngine') diff --git a/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp index bcb72ea9449..26e0d414166 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ b/llvm/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; } -- cgit v1.2.3