[clang] [compiler-rt] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 8 14:28:06 PST 2024
================
@@ -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
----------------
zygoloid wrote:
(nit, throughout) Coding style is to end comments with a period.
https://github.com/llvm/llvm-project/pull/75481
More information about the cfe-commits
mailing list