Register Data Flow: data flow graph
[oota-llvm.git] / lib / Target / PowerPC / PPCBranchSelector.cpp
index 940d55ac1f36e68cb0a29c5f7bf8ecc8ee9e6bc1..73a5305197ad7b959c8f00652666bd9679535ebf 100644 (file)
@@ -91,7 +91,7 @@ bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) {
   unsigned FuncSize = 0;
   for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
        ++MFI) {
-    MachineBasicBlock *MBB = MFI;
+    MachineBasicBlock *MBB = &*MFI;
 
     // The end of the previous block may have extra nops if this block has an
     // alignment requirement.