summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ShadowStackCollector.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-05-07 22:54:15 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-05-07 22:54:15 +0000
commitfc2edad4ae6d4e69732b2d400e299d5598ba3e9d (patch)
tree45f5641a5613c6a15b77951bde29ece48b093fb1 /llvm/lib/CodeGen/ShadowStackCollector.cpp
parentac25fc6f2ee4463fff096ddacd98c474f148166f (diff)
downloadbcm5719-llvm-fc2edad4ae6d4e69732b2d400e299d5598ba3e9d.tar.gz
bcm5719-llvm-fc2edad4ae6d4e69732b2d400e299d5598ba3e9d.zip
Turn StripPointerCast() into a method
llvm-svn: 50836
Diffstat (limited to 'llvm/lib/CodeGen/ShadowStackCollector.cpp')
-rw-r--r--llvm/lib/CodeGen/ShadowStackCollector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ShadowStackCollector.cpp b/llvm/lib/CodeGen/ShadowStackCollector.cpp
index 121dfc24077..092671ce562 100644
--- a/llvm/lib/CodeGen/ShadowStackCollector.cpp
+++ b/llvm/lib/CodeGen/ShadowStackCollector.cpp
@@ -325,7 +325,7 @@ void ShadowStackCollector::CollectRoots(Function &F) {
if (Function *F = CI->getCalledFunction())
if (F->getIntrinsicID() == Intrinsic::gcroot) {
std::pair<CallInst*,AllocaInst*> Pair = std::make_pair(
- CI, cast<AllocaInst>(StripPointerCasts(CI->getOperand(1))));
+ CI, cast<AllocaInst>(CI->getOperand(1)->stripPointerCasts()));
if (IsNullValue(CI->getOperand(2)))
Roots.push_back(Pair);
else
OpenPOWER on IntegriCloud