forked from OSchip/llvm-project
[llvm] FIx if-clause -Wmisleading-indentation issue.
While bootstrapping Clang with recent `gcc 6.2.0` I found a bug related to misleading indentation. I believe, a pair of `{}` was forgotten, especially given the above similar piece of code: ``` if (!RDef || !HII->isPredicable(*RDef)) { Done = coalesceRegisters(RD, RegisterRef(S1)); if (Done) { UpdRegs.insert(RD.Reg); UpdRegs.insert(S1.getReg()); } } ``` Reviewers: kparzysz Differential Revision: https://reviews.llvm.org/D26204 llvm-svn: 285794
This commit is contained in:
parent
7424c8ccd1
commit
1f1751182e
|
@ -1174,12 +1174,13 @@ bool HexagonExpandCondsets::coalesceSegments(
|
|||
if (!Done && S2.isReg()) {
|
||||
RegisterRef RS = S2;
|
||||
MachineInstr *RDef = getReachingDefForPred(RS, CI, RP.Reg, false);
|
||||
if (!RDef || !HII->isPredicable(*RDef))
|
||||
if (!RDef || !HII->isPredicable(*RDef)) {
|
||||
Done = coalesceRegisters(RD, RegisterRef(S2));
|
||||
if (Done) {
|
||||
UpdRegs.insert(RD.Reg);
|
||||
UpdRegs.insert(S2.getReg());
|
||||
}
|
||||
}
|
||||
}
|
||||
Changed |= Done;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue