[PATCH] D82518: [openmp] Use Directive_enumSize instead of OMPD_unknown position

Valentin Clement via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 25 06:20:34 PDT 2020


clementval marked 2 inline comments as done.
clementval added inline comments.


================
Comment at: clang/lib/Basic/OpenMPKinds.cpp:583
     OpenMPDirectiveKind DKind) {
-  assert(DKind <= OMPD_unknown);
+  assert(unsigned(DKind) <= llvm::omp::Directive_enumSize);
   switch (DKind) {
----------------
jdoerfert wrote:
> `<`, right?
You are right.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82518





More information about the cfe-commits mailing list