diff options
author | Duncan Sands <baldrick@free.fr> | 2009-07-10 20:07:07 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-07-10 20:07:07 +0000 |
commit | e8dfcaece2b1f2f0ccfc99b3e63914a82cb0f834 (patch) | |
tree | 2afbb9d636c5111780f85e13810fccea457690ce | |
parent | 40c3e21fbd3d940b4af1b020c2b6cd6166b54455 (diff) | |
download | external_llvm-e8dfcaece2b1f2f0ccfc99b3e63914a82cb0f834.zip external_llvm-e8dfcaece2b1f2f0ccfc99b3e63914a82cb0f834.tar.gz external_llvm-e8dfcaece2b1f2f0ccfc99b3e63914a82cb0f834.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.cpp | 2 |
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; |