-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[llvm][mustache] Avoid extra copy for json strings #159195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Sep 16, 2025
This was referenced Sep 16, 2025
This was referenced Sep 16, 2025
@llvm/pr-subscribers-llvm-support Author: Paul Kirth (ilovepi) ChangesFull diff: https://github.com/llvm/llvm-project/pull/159195.diff 1 Files Affected:
diff --git a/llvm/lib/Support/Mustache.cpp b/llvm/lib/Support/Mustache.cpp
index c17c2fba323d4..f8095a4eb1acc 100644
--- a/llvm/lib/Support/Mustache.cpp
+++ b/llvm/lib/Support/Mustache.cpp
@@ -685,8 +685,7 @@ static void toMustacheString(const json::Value &Data, raw_ostream &OS) {
return;
}
case json::Value::String: {
- auto Str = *Data.getAsString();
- OS << Str.str();
+ OS << *Data.getAsString();
return;
}
|
b65b639
to
749306f
Compare
1fa886b
to
b95282a
Compare
749306f
to
1389ea3
Compare
petrhosek
approved these changes
Sep 22, 2025
b95282a
to
7100270
Compare
1389ea3
to
8ee94b4
Compare
7100270
to
2a32dcd
Compare
8ee94b4
to
5b2c23c
Compare
5b2c23c
to
8b1efc3
Compare
165e659
to
b233591
Compare
8b1efc3
to
964edee
Compare
b233591
to
385ae4b
Compare
a920b52
to
b9da266
Compare
28e0058
to
a6c453d
Compare
b9da266
to
11fe600
Compare
a6c453d
to
f9e86b8
Compare
11fe600
to
59b5eda
Compare
f9e86b8
to
8395d94
Compare
59b5eda
to
4b5d45b
Compare
8395d94
to
c0cfd17
Compare
6020deb
to
8474924
Compare
c0cfd17
to
6bf75e7
Compare
evelez7
approved these changes
Oct 8, 2025
8474924
to
3289df4
Compare
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/20216 Here is the relevant piece of the build log for the reference
|
svkeerthy
pushed a commit
that referenced
this pull request
Oct 9, 2025
DharuniRAcharya
pushed a commit
to DharuniRAcharya/llvm-project
that referenced
this pull request
Oct 13, 2025
akadutta
pushed a commit
to akadutta/llvm-project
that referenced
this pull request
Oct 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.