Fix PR1187.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43692 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2007-11-05 00:59:10 +00:00
parent 18b0ca854f
commit 5f5f3b6333
2 changed files with 38 additions and 1 deletions

View File

@ -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;
}
}