mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make a copy of the string before mutation
This commit is contained in:
@@ -814,7 +814,7 @@ llvm::AttributeSet IRGenModule::constructInitialAttributes() {
|
||||
attrsUpdated = attrsUpdated.addAttribute(LLVMContext,
|
||||
llvm::AttributeSet::FunctionIndex, "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.
|
||||
|
||||
Reference in New Issue
Block a user