Skip to content

Commit b65b639

Browse files
committed
[llvm][mustache] Avoid extra copy for json strings
1 parent 7742b69 commit b65b639

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
@@ -685,8 +685,7 @@ static void toMustacheString(const json::Value &Data, raw_ostream &OS) {
685685
return;
686686
}
687687
case json::Value::String: {
688-
auto Str = *Data.getAsString();
689-
OS << Str.str();
688+
OS << *Data.getAsString();
690689
return;
691690
}
692691

0 commit comments

Comments
 (0)