From 8acf2956b8b47596103517e024acc8e686c17353 Mon Sep 17 00:00:00 2001 From: Victor Hernandez Date: Fri, 23 Oct 2009 21:09:37 +0000 Subject: Remove AllocationInst. Since MallocInst went away, AllocaInst is the only subclass of AllocationInst, so it no longer is necessary. llvm-svn: 84969 --- llvm/lib/Analysis/PointerTracking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/PointerTracking.cpp') 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(V)) { + if (AllocaInst *AI = dyn_cast(V)) { Value *arraySize = AI->getArraySize(); Ty = AI->getAllocatedType(); // arraySize elements of type Ty. -- cgit v1.2.3