aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
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
commit5f5f3b6333ed5ecaf40699e8cd0b1aba524cbf0f (patch)
treef8b6925a600b0b563d00773667d6083da58f0f56 /lib/CodeGen/LiveIntervalAnalysis.cpp
parent18b0ca854fbeebbc48cf1f4473daa428e68f748c (diff)
Fix PR1187.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-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 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;
}
}