summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/PointerTracking.cpp
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-10-23 21:09:37 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-10-23 21:09:37 +0000
commit8acf2956b8b47596103517e024acc8e686c17353 (patch)
treeb7f3e36b0d915c2125c7094ea8af3b06e5c47c3c /llvm/lib/Analysis/PointerTracking.cpp
parent9a14b84ac559e85672ce9c463eba7bf23ba4b6a2 (diff)
downloadbcm5719-llvm-8acf2956b8b47596103517e024acc8e686c17353.tar.gz
bcm5719-llvm-8acf2956b8b47596103517e024acc8e686c17353.zip
Remove AllocationInst. Since MallocInst went away, AllocaInst is the only subclass of AllocationInst, so it no longer is necessary.
llvm-svn: 84969
Diffstat (limited to 'llvm/lib/Analysis/PointerTracking.cpp')
-rw-r--r--llvm/lib/Analysis/PointerTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/PointerTracking.cpp b/llvm/lib/Analysis/PointerTracking.cpp
index 2309fbc952c..4abd6fe26a9 100644
--- a/llvm/lib/Analysis/PointerTracking.cpp
+++ b/llvm/lib/Analysis/PointerTracking.cpp
@@ -93,7 +93,7 @@ bool PointerTracking::doInitialization(Module &M) {
const SCEV *PointerTracking::computeAllocationCount(Value *P,
const Type *&Ty) const {
Value *V = P->stripPointerCasts();
- if (AllocationInst *AI = dyn_cast<AllocationInst>(V)) {
+ if (AllocaInst *AI = dyn_cast<AllocaInst>(V)) {
Value *arraySize = AI->getArraySize();
Ty = AI->getAllocatedType();
// arraySize elements of type Ty.
OpenPOWER on IntegriCloud