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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user