summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-01-07 19:14:42 +0000
committerDuncan Sands <baldrick@free.fr>2008-01-07 19:14:42 +0000
commitc50c210d76888f12b8b6f22a64c22e75b6920b2c (patch)
treea06d3aaf6785c5e4e36aea30129b7afe09af313b /llvm/lib
parent699e638e4febea41f070f3a723aa01d51535a0aa (diff)
downloadbcm5719-llvm-c50c210d76888f12b8b6f22a64c22e75b6920b2c.tar.gz
bcm5719-llvm-c50c210d76888f12b8b6f22a64c22e75b6920b2c.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud