summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit45210aab861414e1dc0ebc240ca1f2bb8da98a5f (patch)
treedef55d86868901e35cfef3fd328dfc61f18b91b1 /llvm/lib
parentbb00fe0dc697d540a6ddc3b06bb4add3deec89ca (diff)
downloadbcm5719-llvm-45210aab861414e1dc0ebc240ca1f2bb8da98a5f.tar.gz
bcm5719-llvm-45210aab861414e1dc0ebc240ca1f2bb8da98a5f.zip
Avoid compiler warnings if assertions turned off.
llvm-svn: 75267
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 27ab5d53575..b13f4942735 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud