summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-07-03 16:11:59 +0000
committerDuncan Sands <baldrick@free.fr>2009-07-03 16:11:59 +0000
commitcac07a4cb7d60e7902b7e3c722085e3b76c5ed0a (patch)
tree9b9050f6cdc86d1d6a19c464f297728c2a2bff18 /llvm/lib/Target
parentc3f89b3fbbf1031a2e064cfdeb36139f88c0675e (diff)
downloadbcm5719-llvm-cac07a4cb7d60e7902b7e3c722085e3b76c5ed0a.tar.gz
bcm5719-llvm-cac07a4cb7d60e7902b7e3c722085e3b76c5ed0a.zip
Silence a warning when assertions are turned off.
llvm-svn: 74779
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Mips/MipsInstrInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.cpp b/llvm/lib/Target/Mips/MipsInstrInfo.cpp
index c2b876403dc..e16fd8e400c 100644
--- a/llvm/lib/Target/Mips/MipsInstrInfo.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud