Fix the build. Apparently MachineInstr& is no longer implicitly convertable to Machi...
authorOwen Anderson <resistor@mac.com>
Tue, 8 Jul 2008 23:36:37 +0000 (23:36 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 8 Jul 2008 23:36:37 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53260 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocLocal.cpp

index a80311a60b1d12faf5e0b42b26d093d7c677ebd9..ed45961db9186d1af107f9394ef90505ca93f632 100644 (file)
@@ -663,7 +663,7 @@ void RALocal::AllocateBasicBlock(MachineBasicBlock &MBB) {
         // - used in another block
         // - used in the same block before it is defined (loop)
         if (UI->getParent() != &MBB ||
-            (MO.isDef() && UI.getOperand().isUse() && precedes(*UI, MI))) {
+            (MO.isDef() && UI.getOperand().isUse() && precedes(&*UI, MI))) {
           UsedInMultipleBlocks.set(MO.getReg() - 
                                    TargetRegisterInfo::FirstVirtualRegister);
           usedOutsideBlock = true;