aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-07-10 20:07:07 +0000
committerDuncan Sands <baldrick@free.fr>2009-07-10 20:07:07 +0000
commit413a15ef0e5e727afeedf57e8b2f416acf3662c0 (patch)
tree2afbb9d636c5111780f85e13810fccea457690ce
parent49ddb61612725f9910146b2b85565242d91c821e (diff)
downloadexternal_llvm-413a15ef0e5e727afeedf57e8b2f416acf3662c0.zip
external_llvm-413a15ef0e5e727afeedf57e8b2f416acf3662c0.tar.gz
external_llvm-413a15ef0e5e727afeedf57e8b2f416acf3662c0.tar.bz2
Avoid compiler warnings if assertions turned off.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75267 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 27ab5d5..b13f494 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -252,6 +252,7 @@ void LiveIntervals::computeNumbering() {
terminatorGaps.insert(std::make_pair(&*MBB, MIIndex)).second;
assert(inserted &&
"Multiple 'first' terminators encountered during numbering.");
+ inserted = inserted; // Avoid compiler warning if assertions turned off.
i2miMap_.push_back(0);
MIIndex += InstrSlots::NUM;
@@ -280,6 +281,7 @@ void LiveIntervals::computeNumbering() {
terminatorGaps.insert(std::make_pair(&*MBB, MIIndex)).second;
assert(inserted &&
"Multiple 'first' terminators encountered during numbering.");
+ inserted = inserted; // Avoid compiler warning if assertions turned off.
i2miMap_.push_back(0);
MIIndex += InstrSlots::NUM;