[llvm-commits] [llvm] r53260 - /llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
Owen Anderson
resistor at mac.com
Tue Jul 8 16:36:37 PDT 2008
Author: resistor
Date: Tue Jul 8 18:36:37 2008
New Revision: 53260
URL: http://llvm.org/viewvc/llvm-project?rev=53260&view=rev
Log:
Fix the build. Apparently MachineInstr& is no longer implicitly convertable to MachineBasicBlock::iterator.
Modified:
llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocLocal.cpp?rev=53260&r1=53259&r2=53260&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocLocal.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocLocal.cpp Tue Jul 8 18:36:37 2008
@@ -663,7 +663,7 @@
// - 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;
More information about the llvm-commits
mailing list