[PATCH] D120290: [Clang][OpenMP] Add the codegen support for `atomic compare capture`
Shilei Tian via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 22 08:42:05 PST 2022
tianshilei1992 marked an inline comment as done.
tianshilei1992 added inline comments.
================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:11556
X = ThenBO->getLHS();
- D = ThenBO->getRHS();
+ D = ThenBO->getRHS()->IgnoreImpCasts();
----------------
ABataev wrote:
> Need to be careful here, probably may need to cast to resulting type explicitly to avoid problems between int/float/etc. conversions.
I think we don't need that as `D` and `E` are supposed to be rvalue, and as shown here I only ignore implicit casts for rvalue.
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