summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-16 20:31:50 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-16 20:31:50 +0000
commit30f2ac714b5fca1abe60b302ddb814faa9229353 (patch)
tree96c2f33e72e4055991314093076332898beb7fec /llvm/lib
parent6a8dc922b39962b12c1eb5dc558204a795185778 (diff)
downloadbcm5719-llvm-30f2ac714b5fca1abe60b302ddb814faa9229353.tar.gz
bcm5719-llvm-30f2ac714b5fca1abe60b302ddb814faa9229353.zip
Silence a clang warning about the deprecated (but perfectly reasonable in
context) increment-of-bool idiom. llvm-svn: 91564
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/Thumb1InstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp b/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
index 66d3b83cdc2..e8753948fdc 100644
--- a/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
+++ b/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
@@ -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.
OpenPOWER on IntegriCloud