aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/Mem2Reg.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-04-25 17:15:20 +0000
committerDevang Patel <dpatel@apple.com>2007-04-25 17:15:20 +0000
commit41968df51e11f581eb19c8f68a8cb2f4e8acc1c5 (patch)
tree7f6493a99543460670044da0411719bc0c6313d2 /lib/Transforms/Utils/Mem2Reg.cpp
parent65e203d713ba6a138d0238e19ddd707728b40f8f (diff)
downloadexternal_llvm-41968df51e11f581eb19c8f68a8cb2f4e8acc1c5.zip
external_llvm-41968df51e11f581eb19c8f68a8cb2f4e8acc1c5.tar.gz
external_llvm-41968df51e11f581eb19c8f68a8cb2f4e8acc1c5.tar.bz2
Remove unused function argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Mem2Reg.cpp')
-rw-r--r--lib/Transforms/Utils/Mem2Reg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/Mem2Reg.cpp b/lib/Transforms/Utils/Mem2Reg.cpp
index 9bcf0ab..bc29c9f 100644
--- a/lib/Transforms/Utils/Mem2Reg.cpp
+++ b/lib/Transforms/Utils/Mem2Reg.cpp
@@ -70,7 +70,7 @@ bool PromotePass::runOnFunction(Function &F) {
// 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 (isAllocaPromotable(AI, TD))
+ if (isAllocaPromotable(AI))
Allocas.push_back(AI);
if (Allocas.empty()) break;