From 413a15ef0e5e727afeedf57e8b2f416acf3662c0 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Fri, 10 Jul 2009 20:07:07 +0000 Subject: [PATCH] Avoid compiler warnings if assertions turned off. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75267 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LiveIntervalAnalysis.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 27ab5d53575..b13f4942735 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;