[llvm-commits] [llvm] r45714 - /llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp

Duncan Sands baldrick at free.fr
Mon Jan 7 11:14:43 PST 2008


Author: baldrick
Date: Mon Jan  7 13:14:42 2008
New Revision: 45714

URL: http://llvm.org/viewvc/llvm-project?rev=45714&view=rev
Log:
I doubt the address of the Error string was intended
to be used for the force_interpreter parameter...
Spotted by gcc-4.2.

Modified:
    llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp

Modified: llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp?rev=45714&r1=45713&r2=45714&view=diff

==============================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp Mon Jan  7 13:14:42 2008
@@ -101,7 +101,8 @@
                           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;
   }





More information about the llvm-commits mailing list