[clang] [Clang] Fix atomic boolean compound assignment (#33210) (PR #178220)

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 5 08:17:24 PST 2026


================
@@ -1591,6 +1591,13 @@ Value *ScalarExprEmitter::EmitScalarConversion(Value *Src, QualType SrcType,
   if (DstType->isBooleanType())
     return EmitConversionToBool(Src, SrcType);
 
+  // Also handle conversions to atomic bools
----------------
kiran-isaac wrote:

Yeah, agreed. I have added a new commit where I lift the conversion to the caller, `ScalarExprEmitter::EmitCompoundAssignLValue` 

https://github.com/llvm/llvm-project/pull/178220


More information about the cfe-commits mailing list