summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-07-31 00:11:16 +0000
committerJuergen Ributzka <juergen@apple.com>2014-07-31 00:11:16 +0000
commite8514fc1f78dc917ed81c8a8112c9d110a1b7c9e (patch)
treef179c6d0e0f6817dd3526ea61f5624fc8c8b9f5b /llvm/lib/CodeGen
parent39032673da9fe6da0c532f4c220090c793acb47d (diff)
downloadbcm5719-llvm-e8514fc1f78dc917ed81c8a8112c9d110a1b7c9e.tar.gz
bcm5719-llvm-e8514fc1f78dc917ed81c8a8112c9d110a1b7c9e.zip
[FastISel] Fix the patchpoint intrinsic lowering in FastISel for large target addresses.
This fixes a mistake where I accidentially dropped the upper 32bit of a 64bit pointer during FastISel lowering of the patchpoint intrinsic. llvm-svn: 214367
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index ee23e7066a5..5492dcc268d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -769,7 +769,7 @@ bool FastISel::SelectPatchpoint(const CallInst *I) {
// Assume that the callee is a constant address or null pointer.
// FIXME: handle function symbols in the future.
- unsigned CalleeAddr;
+ uint64_t CalleeAddr;
if (const auto *C = dyn_cast<IntToPtrInst>(Callee))
CalleeAddr = cast<ConstantInt>(C->getOperand(0))->getZExtValue();
else if (const auto *C = dyn_cast<ConstantExpr>(Callee)) {
OpenPOWER on IntegriCloud