Fix a few I's that were meant to be renamed to BI's.
authorDan Gohman <gohman@apple.com>
Mon, 8 Sep 2008 20:37:59 +0000 (20:37 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 8 Sep 2008 20:37:59 +0000 (20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55942 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index abea11cff60dbe8e4cf31df77ed9653f16b7293a..344b91cf82c9203ae7ac0ba623db84efde320435 100644 (file)
@@ -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);
             }