================ @@ -110,21 +111,41 @@ void ExprEngine::VisitBinaryOperator(const BinaryOperator* B, continue; } - assert (B->isCompoundAssignmentOp()); + assert(B->isCompoundAssignmentOp()); switch (Op) { - default: - llvm_unreachable("Invalid opcode for compound assignment."); - case BO_MulAssign: Op = BO_Mul; break; - case BO_DivAssign: Op = BO_Div; break; - case BO_RemAssign: Op = BO_Rem; break; - case BO_AddAssign: Op = BO_Add; break; - case BO_SubAssign: Op = BO_Sub; break; - case BO_ShlAssign: Op = BO_Shl; break; - case BO_ShrAssign: Op = BO_Shr; break; - case BO_AndAssign: Op = BO_And; break; - case BO_XorAssign: Op = BO_Xor; break; - case BO_OrAssign: Op = BO_Or; break; + default: + llvm_unreachable("Invalid opcode for compound assignment."); + case BO_MulAssign: + Op = BO_Mul; + break; + case BO_DivAssign: + Op = BO_Div; + break; + case BO_RemAssign: + Op = BO_Rem; + break; + case BO_AddAssign: + Op = BO_Add; + break; + case BO_SubAssign: + Op = BO_Sub; + break; + case BO_ShlAssign: + Op = BO_Shl; + break; + case BO_ShrAssign: + Op = BO_Shr; + break; + case BO_AndAssign: + Op = BO_And; + break; + case BO_XorAssign: + Op = BO_Xor; + break; + case BO_OrAssign: + Op = BO_Or; + break; ---------------- steakhal wrote:
```suggestion // clang-format off default: llvm_unreachable("Invalid opcode for compound assignment."); case BO_MulAssign: Op = BO_Mul; break; case BO_DivAssign: Op = BO_Div; break; case BO_RemAssign: Op = BO_Rem; break; case BO_AddAssign: Op = BO_Add; break; case BO_SubAssign: Op = BO_Sub; break; case BO_ShlAssign: Op = BO_Shl; break; case BO_ShrAssign: Op = BO_Shr; break; case BO_AndAssign: Op = BO_And; break; case BO_XorAssign: Op = BO_Xor; break; case BO_OrAssign: Op = BO_Or; break; // clang-format on ``` https://github.com/llvm/llvm-project/pull/82599 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits