diff options
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 7819640b6c..92c2634624 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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; } } |