diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-07 22:54:15 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-07 22:54:15 +0000 |
commit | 0b12ecf6ff6b5d3a144178257b6206f0c4788792 (patch) | |
tree | 5c4aa1539ace252ca8f271594cf67c82ceff4dac /lib/CodeGen/ShadowStackCollector.cpp | |
parent | 4561ab5d8199cbfe21288d06b89d8268b48e4be2 (diff) |
Turn StripPointerCast() into a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ShadowStackCollector.cpp')
-rw-r--r-- | lib/CodeGen/ShadowStackCollector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ShadowStackCollector.cpp b/lib/CodeGen/ShadowStackCollector.cpp index 121dfc2407..092671ce56 100644 --- a/lib/CodeGen/ShadowStackCollector.cpp +++ b/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 |