mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -796,9 +796,11 @@ void IRGenModule::constructInitialFnAttributes(llvm::AttrBuilder &Attrs) {
|
||||
if (CPU != "")
|
||||
Attrs.addAttribute("target-cpu", CPU);
|
||||
|
||||
std::vector<std::string> &Features = ClangOpts.Features;
|
||||
std::vector<std::string> Features = ClangOpts.Features;
|
||||
if (!Features.empty()) {
|
||||
SmallString<64> allFeatures;
|
||||
// Sort so that the target features string is canonical.
|
||||
std::sort(Features.begin(), Features.end());
|
||||
interleave(Features, [&](const std::string &s) {
|
||||
allFeatures.append(s);
|
||||
}, [&]{
|
||||
|
||||
Reference in New Issue
Block a user