[clang] [Clang] Permit floating point values in atomic_*_n operations (PR #183843)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 3 11:56:48 PST 2026
================
@@ -4894,10 +4894,14 @@ ExprResult Sema::BuildAtomicExpr(SourceRange CallRange, SourceRange ExprRange,
diag::err_incomplete_type)) {
return ExprError();
}
- } else if (IsN && !ValType->isIntegerType() && !ValType->isPointerType()) {
+ } else if (IsN && !ValType->isIntegerType() && !ValType->isPointerType() &&
+ !(ValType->isFloatingType() &&
----------------
erichkeane wrote:
Can you dig through git a bit? Maybe the answer is there? My suspicion is it was just a 'we forgot' and someone was doing 1 but not the other, but I don't have a good idea.
https://github.com/llvm/llvm-project/pull/183843
More information about the cfe-commits
mailing list