[PATCH] D19382: [OpenMP] Improve mappable expressions Sema.
Samuel Antao via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 26 07:23:13 PDT 2016
sfantao marked 2 inline comments as done.
sfantao added a comment.
Hi Alexey,
Thanks for the review.
================
Comment at: lib/AST/OpenMPClause.cpp:546
@@ +545,3 @@
+ for (auto *D : Declarations) {
+ assert(
+ (!D || D->isCanonicalDecl()) &&
----------------
ABataev wrote:
> sfantao wrote:
> > Ok, using canonical declarations now.
> >
> No, I mean you'd better to check and store canonical decls in Cache, like:
> ```
> if (Cache.count(D->getCaonicalDecl())
> ```
> ```
> Cache.insert(D->getCanonicalDecl());
> ```
>
Oh, okay, I am doing as you say.
http://reviews.llvm.org/D19382
More information about the cfe-commits
mailing list