[PATCH] D75077: [OpenMP5.0] Allow pointer arithmetic in motion/map clause
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 28 09:46:44 PST 2020
ABataev added inline comments.
================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:15499-15501
RelevantExpr = DRE;
// Record the component.
Components.emplace_back(DRE, DRE->getDecl());
----------------
cchen wrote:
> ABataev wrote:
> > Shall we do this only if `RelevantExpr` is nullptr?
> Yes, I'm assuming that `RelevantExpr` is nullptr before those assignments, so maybe adding `assert` is sufficient?
I think assert will crash for something like `x?y:z`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75077/new/
https://reviews.llvm.org/D75077
More information about the cfe-commits
mailing list