[clang] [clang] Fixed a crash when explicitly casting to atomic complex (PR #172163)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 31 09:53:57 PDT 2026
================
@@ -1235,7 +1241,7 @@ LValue ComplexExprEmitter::EmitCompoundAssignLValue(
E->getComputationResultType(), IsComplexDivisor);
if (PromotionTypeCR.isNull())
PromotionTypeCR = E->getComputationResultType();
- OpInfo.Ty = PromotionTypeCR;
+ OpInfo.Ty = PromotionTypeCR.getAtomicUnqualifiedType();
----------------
efriedma-quic wrote:
Missing test coverage for this change?
https://github.com/llvm/llvm-project/pull/172163
More information about the cfe-commits
mailing list