diff options
| author | Duncan Sands <baldrick@free.fr> | 2008-01-07 19:14:42 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2008-01-07 19:14:42 +0000 |
| commit | 4ff78156a753dafa61c3926984f8f5df9541bc74 (patch) | |
| tree | fa0e16d24fdc6180b846dc173c32a170198afe68 /lib/ExecutionEngine | |
| parent | 8ae8877831e36360e91c2a3d431926a65774d62f (diff) | |
| download | external_llvm-4ff78156a753dafa61c3926984f8f5df9541bc74.zip external_llvm-4ff78156a753dafa61c3926984f8f5df9541bc74.tar.gz external_llvm-4ff78156a753dafa61c3926984f8f5df9541bc74.tar.bz2 | |
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
Diffstat (limited to 'lib/ExecutionEngine')
| -rw-r--r-- | lib/ExecutionEngine/ExecutionEngineBindings.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/lib/ExecutionEngine/ExecutionEngineBindings.cpp index bcb72ea..26e0d41 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; } |
