[PATCH] D85102: [clang] improve diagnostics for misaligned and large atomics

JF Bastien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 08:39:27 PDT 2020


jfb accepted this revision.
jfb added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/test/CodeGen/atomics-sema-alignment.c:43
+  Foo bar;
+  __atomic_load(foo, &bar, __ATOMIC_RELAXED); // expected-warning {{misaligned atomic operation may incur significant performance penalty; the expected (16 bytes) exceeds the actual alignment (8 bytes)}}
+
----------------
"the expected (16 bytes)" should be "the expected alignment (16 bytes)"


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

https://reviews.llvm.org/D85102



More information about the cfe-commits mailing list