summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-08-01 22:20:21 +0000
committerCraig Topper <craig.topper@gmail.com>2015-08-01 22:20:21 +0000
commite3dcce9700c6f7045774f46f66faa610081495a5 (patch)
tree10ddb2f805ad5ca46dc4279b77d6f34ef98c1564 /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
parentede603057ebaa4db7bf034f78e96a8bb4b7fe8a5 (diff)
downloadbcm5719-llvm-e3dcce9700c6f7045774f46f66faa610081495a5.tar.gz
bcm5719-llvm-e3dcce9700c6f7045774f46f66faa610081495a5.zip
De-constify pointers to Type since they can't be modified. NFC
This was already done in most places a while ago. This just fixes the ones that crept in over time. llvm-svn: 243842
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index aa30cfb8ff9..53975e254b1 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -197,8 +197,8 @@ static void findLiveSetAtInst(Instruction *inst, GCPtrLivenessData &Data,
// TODO: Once we can get to the GCStrategy, this becomes
// Optional<bool> isGCManagedPointer(const Value *V) const override {
-static bool isGCPointerType(const Type *T) {
- if (const PointerType *PT = dyn_cast<PointerType>(T))
+static bool isGCPointerType(Type *T) {
+ if (auto *PT = dyn_cast<PointerType>(T))
// For the sake of this example GC, we arbitrarily pick addrspace(1) as our
// GC managed heap. We know that a pointer into this heap needs to be
// updated and that no other pointer does.
OpenPOWER on IntegriCloud