summaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-12 01:17:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-12 01:17:41 +0000
commit15f46d6c280cc91be70c60ed181931fbe0088652 (patch)
tree07819b1afebb41775b1df6a9e8bc7536249d68c4 /lib/ExecutionEngine
parentf64945d83c61e540a448de0d0d23cda67c92ebe5 (diff)
downloadexternal_llvm-15f46d6c280cc91be70c60ed181931fbe0088652.zip
external_llvm-15f46d6c280cc91be70c60ed181931fbe0088652.tar.gz
external_llvm-15f46d6c280cc91be70c60ed181931fbe0088652.tar.bz2
Change inferred cast creation calls to more specific cast creations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp
index 28c452d..4cfd907 100644
--- a/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/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);