From: Duncan Sands Date: Fri, 3 Jul 2009 16:11:59 +0000 (+0000) Subject: Silence a warning when assertions are turned off. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=430506924dd2afe4f118e785ae8b38f8677c2428;p=oota-llvm.git Silence a warning when assertions are turned off. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74779 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MipsInstrInfo.cpp b/lib/Target/Mips/MipsInstrInfo.cpp index c2b876403dc..e16fd8e400c 100644 --- a/lib/Target/Mips/MipsInstrInfo.cpp +++ b/lib/Target/Mips/MipsInstrInfo.cpp @@ -651,6 +651,7 @@ unsigned MipsInstrInfo::getGlobalBaseReg(MachineFunction *MF) const { Mips::CPURegsRegisterClass, Mips::CPURegsRegisterClass); assert(Ok && "Couldn't assign to global base register!"); + Ok = Ok; // Silence warning when assertions are turned off. RegInfo.addLiveIn(Mips::GP); MipsFI->setGlobalBaseReg(GlobalBaseReg);