================
@@ -2763,9 +2764,10 @@ bool 
CodeGenModule::GetCPUAndFeaturesAttributes(GlobalDecl GD,
       Attrs.addAttribute("fmv-features");
       AddedAttr = true;
     } else if (!Feats.empty()) {
-      llvm::sort(Feats);
+      // Sort features and remove duplicates.
+      std::set<StringRef> OrderedFeats(Feats.begin(), Feats.end());
----------------
jroelofs wrote:

`llvm::StringSet` ?

https://github.com/llvm/llvm-project/pull/122192
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to