[clang] [FMV][AArch64] Changes in fmv-features metadata. (PR #122192)
Jon Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 10 09:05:31 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list