llvm.org GIT mirror llvm / 6eeccd4
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 John McCall 10 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
179179 AddDefaultPred(MIB);
180180 MIB.addReg(0); // No write back.
181181
182 bool NumRegs = 0;
182 bool NumRegs = false;
183183 for (unsigned i = CSI.size(); i != 0; --i) {
184184 unsigned Reg = CSI[i-1].getReg();
185185 if (Reg == ARM::LR) {
191191 MI = MBB.erase(MI);
192192 }
193193 MIB.addReg(Reg, getDefRegState(true));
194 ++NumRegs;
194 NumRegs = true;
195195 }
196196
197197 // It's illegal to emit pop instruction without operands.