projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7f2d30
)
Silence a warning when assertions are turned off.
author
Duncan Sands
<baldrick@free.fr>
Fri, 3 Jul 2009 16:11:59 +0000
(16:11 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Fri, 3 Jul 2009 16:11:59 +0000
(16:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74779
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Mips/MipsInstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Mips/MipsInstrInfo.cpp
b/lib/Target/Mips/MipsInstrInfo.cpp
index c2b876403dc1b48028eaa2282e1cad1a6e0b5db4..e16fd8e400c5d5378a213dec7ef87578afac05e7 100644
(file)
--- 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);