Skip to content

Commit 1389ea3

Browse files
committed
[llvm][mustache] Avoid extra copy for json strings
1 parent b95282a commit 1389ea3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Support/Mustache.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,7 @@ static void toMustacheString(const json::Value &Data, raw_ostream &OS) {
686686
return;
687687
}
688688
case json::Value::String: {
689-
auto Str = *Data.getAsString();
690-
OS << Str.str();
689+
OS << *Data.getAsString();
691690
return;
692691
}
693692

0 commit comments

Comments
 (0)