Silence a warning when assertions are turned off.

llvm-svn: 74779
This commit is contained in:
Duncan Sands 2009-07-03 16:11:59 +00:00
parent 962a71b15f
commit 842ea8031b

View File

@ -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);