summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-01-29 16:54:49 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-01-29 16:54:49 +0000
commit565f7866ac9e0d597118cf6b7238c5305315af50 (patch)
tree68570e8ffbf6a97c267654d2f2b06844d803e14e /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
parent3794eeb8bbb04e387d127aa348a81a49e5178d30 (diff)
downloadbcm5719-llvm-565f7866ac9e0d597118cf6b7238c5305315af50.tar.gz
bcm5719-llvm-565f7866ac9e0d597118cf6b7238c5305315af50.zip
[RS4GC] Remove unnecessary const_cast; NFC
GCRelocateInst::getDerivedPtr already returns a non-const llvm::Value pointer. llvm-svn: 259209
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index cc89149f2de..bf6f2b91763 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -1594,7 +1594,7 @@ insertRelocationStores(iterator_range<Value::user_iterator> GCRelocs,
if (!Relocate)
continue;
- Value *OriginalValue = const_cast<Value *>(Relocate->getDerivedPtr());
+ Value *OriginalValue = Relocate->getDerivedPtr();
assert(AllocaMap.count(OriginalValue));
Value *Alloca = AllocaMap[OriginalValue];
OpenPOWER on IntegriCloud