Skip to content

Commit 11fe600

Browse files
committed
[llvm][mustache] Avoid extra copy for json strings
1 parent a6c453d commit 11fe600

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
@@ -698,8 +698,7 @@ static void toMustacheString(const json::Value &Data, raw_ostream &OS) {
698698
return;
699699
}
700700
case json::Value::String: {
701-
auto Str = *Data.getAsString();
702-
OS << Str.str();
701+
OS << *Data.getAsString();
703702
return;
704703
}
705704

0 commit comments

Comments
 (0)