summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/Collector.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/Collector.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/Collector.cpp')
-rw-r--r--llvm/lib/CodeGen/Collector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/Collector.cpp b/llvm/lib/CodeGen/Collector.cpp
index fe5119ea2db..07869a0ff55 100644
--- a/llvm/lib/CodeGen/Collector.cpp
+++ b/llvm/lib/CodeGen/Collector.cpp
@@ -178,8 +178,8 @@ bool LowerIntrinsics::InsertRootInitializers(Function &F, AllocaInst **Roots,
SmallPtrSet<AllocaInst*,16> InitedRoots;
for (; !CouldBecomeSafePoint(IP); ++IP)
if (StoreInst *SI = dyn_cast<StoreInst>(IP))
- if (AllocaInst *AI = dyn_cast<AllocaInst>(
- IntrinsicInst::StripPointerCasts(SI->getOperand(1))))
+ if (AllocaInst *AI =
+ dyn_cast<AllocaInst>(StripPointerCasts(SI->getOperand(1))))
InitedRoots.insert(AI);
// Add root initializers.
@@ -294,7 +294,7 @@ bool LowerIntrinsics::PerformDefaultLowering(Function &F, Collector &Coll) {
// Initialize the GC root, but do not delete the intrinsic. The
// backend needs the intrinsic to flag the stack slot.
Roots.push_back(cast<AllocaInst>(
- IntrinsicInst::StripPointerCasts(CI->getOperand(1))));
+ StripPointerCasts(CI->getOperand(1))));
}
break;
default:
OpenPOWER on IntegriCloud