[PATCH] D72811: [WIP][OPENMP5.0] allow lvalue for motion clause
Chi Chun Chen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 11 12:42:19 PST 2020
cchen marked an inline comment as done.
cchen added inline comments.
================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:15293
+ // TypeDecorCnt for B: 0
+ if (Depth <= TypeDecorCnt) {
+ RelevantExpr = cast<Expr>(DRE);
----------------
ABataev wrote:
> The check is really bad. If you want to handle something like `*(B+x)` better to treat, say, `B` as the base and `x` as the index and, thus, treat the whole expression as something like `B[x]`
I don't understand how to do this, is there any sample code that I can learn from? Thanks
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72811/new/
https://reviews.llvm.org/D72811
More information about the cfe-commits
mailing list