aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r--lib/CodeGen/RegAllocLocal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp
index a80311a60b..ed45961db9 100644
--- a/lib/CodeGen/RegAllocLocal.cpp
+++ b/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;