aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-11-05 00:59:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-11-05 00:59:10 +0000
commitccfa6921070225ad30fe5e82641775da0983f07a (patch)
treef8b6925a600b0b563d00773667d6083da58f0f56 /lib
parent8453bcdd77b348d4a83b5a137f53ad6249910a37 (diff)
downloadexternal_llvm-ccfa6921070225ad30fe5e82641775da0983f07a.zip
external_llvm-ccfa6921070225ad30fe5e82641775da0983f07a.tar.gz
external_llvm-ccfa6921070225ad30fe5e82641775da0983f07a.tar.bz2
Fix PR1187.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}