mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Silence warnings when assertions are turned off.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74776 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98749f851d
commit
8d8628a1fe
@ -473,6 +473,7 @@ unsigned AlphaInstrInfo::getGlobalBaseReg(MachineFunction *MF) const {
|
||||
bool Ok = TII->copyRegToReg(FirstMBB, MBBI, GlobalBaseReg, Alpha::R29,
|
||||
&Alpha::GPRCRegClass, &Alpha::GPRCRegClass);
|
||||
assert(Ok && "Couldn't assign to global base register!");
|
||||
Ok = Ok; // Silence warning when assertions are turned off.
|
||||
RegInfo.addLiveIn(Alpha::R29);
|
||||
|
||||
AlphaFI->setGlobalBaseReg(GlobalBaseReg);
|
||||
@ -499,6 +500,7 @@ unsigned AlphaInstrInfo::getGlobalRetAddr(MachineFunction *MF) const {
|
||||
bool Ok = TII->copyRegToReg(FirstMBB, MBBI, GlobalRetAddr, Alpha::R26,
|
||||
&Alpha::GPRCRegClass, &Alpha::GPRCRegClass);
|
||||
assert(Ok && "Couldn't assign to global return address register!");
|
||||
Ok = Ok; // Silence warning when assertions are turned off.
|
||||
RegInfo.addLiveIn(Alpha::R26);
|
||||
|
||||
AlphaFI->setGlobalRetAddr(GlobalRetAddr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user