[PATCH] D109635: [WIP][OpenMP] Support construct trait set for Clang

Johannes Doerfert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 14 16:39:59 PDT 2021


jdoerfert added a comment.

Great! This should work. Though we need actual tests ;)

I also provided you with two minor edits below to make it easier to read, no functional change though.



================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:737-738
+    if (ScopeEntry)
+      std::copy(Traits.begin(), Traits.end(),
+                std::back_inserter(ConstructTraits));
+    else
----------------



================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:740
+    else
+      for (auto RI = Traits.rbegin(), RE = Traits.rend(); RI != RE; ++RI) {
+        llvm::omp::TraitProperty Top = ConstructTraits.pop_back_val();
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109635



More information about the cfe-commits mailing list