diff options
author | John McCall <rjmccall@apple.com> | 2009-12-16 20:31:50 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-12-16 20:31:50 +0000 |
commit | 6eeccd4aa4f332bc60ae120ea5753a4020b75a61 (patch) | |
tree | d0c00169d57864ac3ff18cd7f2e9d2f0f2ab6db9 /lib/Target/ARM/Thumb1InstrInfo.cpp | |
parent | 819309efec6f11ba752bd7cbfe186495745f020b (diff) | |
download | external_llvm-6eeccd4aa4f332bc60ae120ea5753a4020b75a61.zip external_llvm-6eeccd4aa4f332bc60ae120ea5753a4020b75a61.tar.gz external_llvm-6eeccd4aa4f332bc60ae120ea5753a4020b75a61.tar.bz2 |
Silence a clang warning about the deprecated (but perfectly reasonable in
context) increment-of-bool idiom.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Thumb1InstrInfo.cpp')
-rw-r--r-- | lib/Target/ARM/Thumb1InstrInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/Thumb1InstrInfo.cpp b/lib/Target/ARM/Thumb1InstrInfo.cpp index 66d3b83..e875394 100644 --- a/lib/Target/ARM/Thumb1InstrInfo.cpp +++ b/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. |