[PATCH] D47474: Implement cpu_dispatch/cpu_specific Multiversioning

Mandeep Singh Grang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 29 13:53:16 PDT 2018


mgrang added inline comments.


================
Comment at: lib/Sema/SemaDecl.cpp:9440
+  // Sort order doesn't matter, it just needs to be consistent.
+  std::sort(NewParsed.Features.begin(), NewParsed.Features.end());
 
----------------
Please use llvm::sort instead of std::sort. See https://llvm.org/docs/CodingStandards.html#beware-of-non-deterministic-sorting-order-of-equal-elements.


================
Comment at: lib/Sema/SemaDecl.cpp:9526
+    NewParsed = NewTA->parse();
+    std::sort(NewParsed.Features.begin(), NewParsed.Features.end());
   }
----------------
Please use llvm::sort instead of std::sort. See https://llvm.org/docs/CodingStandards.html#beware-of-non-deterministic-sorting-order-of-equal-elements.


Repository:
  rC Clang

https://reviews.llvm.org/D47474





More information about the cfe-commits mailing list