diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:37:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:37:45 +0000 |
commit | 889f620841146d6f9f935f2271e80a7dddc15e25 (patch) | |
tree | eb3b923511a1c4be6f4936462a30321f6984c395 /llvm/lib/Transforms/Scalar/Mem2Reg.cpp | |
parent | 6ee2cf5d89f1695e229926ecee821e1a22759617 (diff) | |
download | bcm5719-llvm-889f620841146d6f9f935f2271e80a7dddc15e25.tar.gz bcm5719-llvm-889f620841146d6f9f935f2271e80a7dddc15e25.zip |
Remove unnecesary &*'s
llvm-svn: 5872
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Mem2Reg.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/Mem2Reg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp index 848c4d67066..6bd859a4037 100644 --- a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp +++ b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp @@ -43,7 +43,7 @@ bool PromotePass::runOnFunction(Function &F) { // Find allocas that are safe to promote, by looking at all instructions in // the entry node for (BasicBlock::iterator I = BB.begin(), E = --BB.end(); I != E; ++I) - if (AllocaInst *AI = dyn_cast<AllocaInst>(&*I)) // Is it an alloca? + if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? if (isAllocaPromotable(AI, TD)) Allocas.push_back(AI); |