diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 28c452d7fbd..4cfd907ee9b 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp @@ -212,7 +212,7 @@ GenericValue JIT::runFunction(Function *F,        } else {          C = ConstantInt::get(Type::LongTy, (intptr_t)ArgPtr);        } -      C = ConstantExpr::getCast(C, ArgTy);  // Cast the integer to pointer +      C = ConstantExpr::getIntToPtr(C, ArgTy);  // Cast the integer to pointer        break;      }      Args.push_back(C); | 

