[PATCH] D51084: Implement -Watomic-implicit-seq-cst

JF Bastien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 6 10:11:58 PDT 2018


jfb added inline comments.


================
Comment at: lib/Sema/SemaChecking.cpp:10974
+  if (E->IgnoreParenImpCasts()->getType()->isAtomicType())
+    return;
   CheckImplicitConversion(S, E->IgnoreParenImpCasts(), S.Context.BoolTy, CC);
----------------
rjmccall wrote:
> Can you explain this one?
It would produce duplicate warnings of `!`, `&&`, `||`, and condition for `? :`. Bool-like conversion is a special case of implicit conversion, which we already check elsewhere.


Repository:
  rC Clang

https://reviews.llvm.org/D51084





More information about the cfe-commits mailing list