[PATCH] D143813: [ClangFE] Check that __sync builtins are naturally aligned.

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 11 10:52:09 PDT 2023


ahatanak added a comment.

In D143813#4257943 <https://reviews.llvm.org/D143813#4257943>, @jonpa wrote:

> I don't understand the first argument - I thought it was supposed to be just an address...

It's a statement expression. https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html

The value of the last subexpression serves as the value of the entire construct.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143813/new/

https://reviews.llvm.org/D143813



More information about the cfe-commits mailing list