[clang] [Clang] Throw error when calling atomic with pointer to zero size object (PR #91057)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue May 21 11:32:15 PDT 2024
================
@@ -8544,6 +8546,13 @@ ExprResult Sema::BuildAtomicExpr(SourceRange CallRange, SourceRange ExprRange,
}
}
+ // pointer to object of size zero is not allowed
----------------
AaronBallman wrote:
```suggestion
// Pointer to object of size zero is not allowed.
```
https://github.com/llvm/llvm-project/pull/91057
More information about the cfe-commits
mailing list