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

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 10 18:29:38 PDT 2023


ahatanak added a comment.

I think this patch is causing the assertion in `CodeGenFunction::setAddrOfLocalVar` to fail when the following code is compiled:

  void foo(unsigned long long t) {
    __sync_bool_compare_and_swap(({int x = 1; &t;}), t, t);
  }

Could you take a look?


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