From 842ea8031b587151db3552281eebda8a6b94a2c0 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Fri, 3 Jul 2009 16:11:59 +0000 Subject: [PATCH] Silence a warning when assertions are turned off. llvm-svn: 74779 --- lib/Target/Mips/MipsInstrInfo.cpp | 1 + 1 file changed, 1 insertion(+) 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);