summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 7819640b6c1..92c26346242 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -466,7 +466,7 @@ bool LiveIntervals::conflictsWithPhysRegDef(const LiveInterval &li,
continue;
if (MRegisterInfo::isVirtualRegister(PhysReg))
PhysReg = vrm.getPhys(PhysReg);
- if (mri_->regsOverlap(PhysReg, reg))
+ if (PhysReg && mri_->regsOverlap(PhysReg, reg))
return true;
}
}
OpenPOWER on IntegriCloud