mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
Silence a clang warning about the deprecated (but perfectly reasonable in
context) increment-of-bool idiom. llvm-svn: 91564
This commit is contained in:
parent
70f0e3d7d0
commit
8ee507f0f5
@ -180,7 +180,7 @@ restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
||||
AddDefaultPred(MIB);
|
||||
MIB.addReg(0); // No write back.
|
||||
|
||||
bool NumRegs = 0;
|
||||
bool NumRegs = false;
|
||||
for (unsigned i = CSI.size(); i != 0; --i) {
|
||||
unsigned Reg = CSI[i-1].getReg();
|
||||
if (Reg == ARM::LR) {
|
||||
@ -192,7 +192,7 @@ restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
||||
MI = MBB.erase(MI);
|
||||
}
|
||||
MIB.addReg(Reg, getDefRegState(true));
|
||||
++NumRegs;
|
||||
NumRegs = true;
|
||||
}
|
||||
|
||||
// It's illegal to emit pop instruction without operands.
|
||||
|
Loading…
Reference in New Issue
Block a user