[PATCH] D120290: [Clang][OpenMP] Add the codegen support for `atomic compare capture`

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 18 05:40:09 PDT 2022


ABataev added inline comments.


================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:11663
   X = BO->getLHS();
-  D = BO->getRHS();
+  D = BO->getRHS()->IgnoreImpCasts();
 
----------------
Why do we need to use `IgnoreImpCasts()` here and in other places?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120290



More information about the cfe-commits mailing list