summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commita8044084ac421843f6a9ec0755027a600bedf0ea (patch)
treefddf7d1e9c7dd6e4f46655abdf88b99823ef83f8 /llvm/lib/CodeGen
parentf07fa24289555a3300ed9d701958a68d69ad979d (diff)
downloadbcm5719-llvm-a8044084ac421843f6a9ec0755027a600bedf0ea.tar.gz
bcm5719-llvm-a8044084ac421843f6a9ec0755027a600bedf0ea.zip
Fix PR1187.
llvm-svn: 43692
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 7819640b6c1..92c26346242 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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;
}
}
OpenPOWER on IntegriCloud