Skip to content

Commit 1b533c0

Browse files
committed
Use push_back loop again (forgot we need to use makeargstring)
1 parent cbd0747 commit 1b533c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/Driver/ToolChains/Arch/RISCV.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ static bool getArchFeatures(const Driver &D, StringRef Arch,
4242
return false;
4343
}
4444

45-
const auto ISAInfoFeatures = (*ISAInfo)->toFeatures(/*AddAllExtension=*/true,
46-
/*IgnoreUnknown=*/false);
47-
Features.insert(Features.end(), ISAInfoFeatures.begin(),
48-
ISAInfoFeatures.end());
45+
for (const std::string &Str : (*ISAInfo)->toFeatures(/*AddAllExtension=*/true,
46+
/*IgnoreUnknown=*/false))
47+
Features.push_back(Args.MakeArgString(Str));
4948

5049
if (EnableExperimentalExtensions)
5150
Features.push_back(Args.MakeArgString("+experimental"));

0 commit comments

Comments
 (0)