From ccfa6921070225ad30fe5e82641775da0983f07a Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 5 Nov 2007 00:59:10 +0000 Subject: Fix PR1187. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43692 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LiveIntervalAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp') diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 7819640..92c2634 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; } } -- cgit v1.1