Skip to content

Commit ad625a4

Browse files
committed
[TableGen] Avoid std::string copy. NFC
Fix #92702
1 parent fb2c659 commit ad625a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/ARMTargetDefEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static void EmitARMTargetDef(RecordKeeper &RK, raw_ostream &OS) {
170170
<< "/// The set of all architectures\n"
171171
<< "static constexpr std::array<const ArchInfo *, " << CppSpellings.size()
172172
<< "> ArchInfos = {\n";
173-
for (auto CppSpelling : CppSpellings)
173+
for (StringRef CppSpelling : CppSpellings)
174174
OS << " &" << CppSpelling << ",\n";
175175
OS << "};\n";
176176

0 commit comments

Comments
 (0)