aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-10-29 17:40:05 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-10-29 17:40:05 +0000
commit8a8e26fb1867b45ab7c5832dc3f509127d6624b8 (patch)
tree472995d873ada7e719bf6eaab907408f24b4069b /lib/CodeGen/SplitKit.cpp
parent6d309059a7d6257ddeb3b07e6c4b8b71cce2f707 (diff)
Silence Release build warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
-rw-r--r--lib/CodeGen/SplitKit.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp
index b5012f313b..84d3003859 100644
--- a/lib/CodeGen/SplitKit.cpp
+++ b/lib/CodeGen/SplitKit.cpp
@@ -429,10 +429,9 @@ VNInfo *LiveIntervalMap::mapValue(const VNInfo *ParentVNI, SlotIndex Idx,
liveOutCache_.insert(std::make_pair(Pred, LiveOutPair()));
// Yes, we have been here before.
if (!LOIP.second) {
- if (VNInfo *VNI = LOIP.first->second.first) {
- DEBUG(dbgs() << " known valno #" << VNI->id
+ DEBUG(if (VNInfo *VNI = LOIP.first->second.first)
+ dbgs() << " known valno #" << VNI->id
<< " at BB#" << Pred->getNumber() << '\n');
- }
continue;
}
@@ -445,7 +444,7 @@ VNInfo *LiveIntervalMap::mapValue(const VNInfo *ParentVNI, SlotIndex Idx,
<< " at BB#" << Pred->getNumber() << '\n');
LiveOutPair &LOP = LOIP.first->second;
LOP.first = VNI;
- LOP.second = mdt_[lis_.getMBBFromIndex(VNI->def)];
+ LOP.second = mdt_[DefMBB];
continue;
}
// No, we need a live-in value for Pred as well