summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-08 20:37:59 +0000
committerDan Gohman <gohman@apple.com>2008-09-08 20:37:59 +0000
commita333f3ccb809f4800fa3d8b85012861b9c3001ad (patch)
treea570d334af12e07c6f436a8e3ffc2bb990510981 /llvm/lib
parent554e6898ffca37ff40465a563f4ed24e53ffe3e6 (diff)
downloadbcm5719-llvm-a333f3ccb809f4800fa3d8b85012861b9c3001ad.tar.gz
bcm5719-llvm-a333f3ccb809f4800fa3d8b85012861b9c3001ad.zip
Fix a few I's that were meant to be renamed to BI's.
llvm-svn: 55942
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index abea11cff60..344b91cf82c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -741,7 +741,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) {
for (; BI != End; ++BI) {
// Just before the terminator instruction, insert instructions to
// feed PHI nodes in successor blocks.
- if (isa<TerminatorInst>(I))
+ if (isa<TerminatorInst>(BI))
if (!HandlePHINodesInSuccessorBlocksFast(LLVMBB, F)) {
if (DisableFastISelAbort)
break;
@@ -763,7 +763,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) {
if (isa<CallInst>(BI) || isa<LoadInst>(BI) ||
isa<StoreInst>(BI)) {
if (BI->getType() != Type::VoidTy) {
- unsigned &R = FuncInfo->ValueMap[I];
+ unsigned &R = FuncInfo->ValueMap[BI];
if (!R)
R = FuncInfo->CreateRegForValue(BI);
}
OpenPOWER on IntegriCloud