From 27b8a21dfd59d05b1ddff206fed9a13c35ff91f3 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 8 Jul 2008 23:36:37 +0000 Subject: Fix the build. Apparently MachineInstr& is no longer implicitly convertable to MachineBasicBlock::iterator. llvm-svn: 53260 --- llvm/lib/CodeGen/RegAllocLocal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp index a80311a60b1..ed45961db91 100644 --- a/llvm/lib/CodeGen/RegAllocLocal.cpp +++ b/llvm/lib/CodeGen/RegAllocLocal.cpp @@ -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; -- cgit v1.2.3