================ @@ -5571,11 +5571,50 @@ LValue CodeGenFunction::EmitBinaryOperatorLValue(const BinaryOperator *E) { break; } - RValue RV = EmitAnyExpr(E->getRHS()); + llvm::Value *Previous = nullptr; + RValue RV; + QualType SrcType = E->getRHS()->getType(); + // Check if LHS is a bitfield and sanitizer checks are enabled + if (E->getLHS()->refersToBitField() && + SanOpts.hasOneOf(SanitizerKind::ImplicitConversion | + SanitizerKind::ImplicitBitfieldConversion)) { ---------------- zygoloid wrote:
```suggestion SanOpts.hasOneOf(SanitizerKind::ImplicitBitfieldConversion)) { ``` No need to check for the containing group; that should be handled automatically. https://github.com/llvm/llvm-project/pull/75481 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits