[PATCH] D66559: [OPENMP] Update the diagnosis message for canonical loop form

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 29 14:57:25 PDT 2019


lebedev.ri resigned from this revision.
lebedev.ri added a comment.

Looks about right now, thanks for unbreaking it.



================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:5419-5420
   //   b relational-op var
   //
   if (!S) {
+		SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_cond)
----------------
It may be much cleaner to
```
bool IneqCondIsCanonical = SemaRef.getLangOpts().OpenMP >= 50;
```
and use that


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D66559





More information about the cfe-commits mailing list