summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ShadowStackCollector.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-05-06 22:52:30 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-05-06 22:52:30 +0000
commit82c02b28f3a1a3adef1638e801999952a2e47f1b (patch)
treee6892060704d4f123712bf8efc02824f7591f08e /llvm/lib/CodeGen/ShadowStackCollector.cpp
parentac81a5aad54e2d0c95a4fa436765006b671283dd (diff)
downloadbcm5719-llvm-82c02b28f3a1a3adef1638e801999952a2e47f1b.tar.gz
bcm5719-llvm-82c02b28f3a1a3adef1638e801999952a2e47f1b.zip
Make StripPointerCast a common function (should we mak it method of Value instead?)
llvm-svn: 50775
Diffstat (limited to 'llvm/lib/CodeGen/ShadowStackCollector.cpp')
-rw-r--r--llvm/lib/CodeGen/ShadowStackCollector.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ShadowStackCollector.cpp b/llvm/lib/CodeGen/ShadowStackCollector.cpp
index d41e83c712d..121dfc24077 100644
--- a/llvm/lib/CodeGen/ShadowStackCollector.cpp
+++ b/llvm/lib/CodeGen/ShadowStackCollector.cpp
@@ -325,8 +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>(
- IntrinsicInst::StripPointerCasts(CI->getOperand(1))));
+ CI, cast<AllocaInst>(StripPointerCasts(CI->getOperand(1))));
if (IsNullValue(CI->getOperand(2)))
Roots.push_back(Pair);
else
OpenPOWER on IntegriCloud