[PATCH] D108151: [NFC][clang] Use X86 Features declaration from X86TargetParser

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 19 07:44:42 PDT 2021


erichkeane added inline comments.


================
Comment at: clang/lib/Basic/Targets/X86.cpp:1071
+    assert(llvm::is_contained(Priorities, Priority) &&
+           "Priorites don't form consequtive range!");
+  }
----------------
If all you care about is whether they are a consecutive range, why not just use `std::is_sorted`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108151



More information about the cfe-commits mailing list