Skip to content

[llvm-cfi-verify] Avoid creating temporary instances of std::string (NFC) #142524

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

Conversation

kazutakahirata
Copy link
Contributor

symbolizeInlinedCode and symbolizeCode take StringRef as the first
parameter. We don't need to create temporary instances of std::string
only to be converted back to StringRef.

…NFC)

symbolizeInlinedCode and symbolizeCode take StringRef as the first
parameter.  We don't need to create temporary instances of std::string
only to be converted back to StringRef.
@kazutakahirata kazutakahirata merged commit 18f1b73 into llvm:main Jun 3, 2025
12 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250603_std_string_roundtrip_llvm_cfi branch June 3, 2025 06:27
sallto pushed a commit to sallto/llvm-project that referenced this pull request Jun 3, 2025
…NFC) (llvm#142524)

symbolizeInlinedCode and symbolizeCode take StringRef as the first
parameter.  We don't need to create temporary instances of std::string
only to be converted back to StringRef.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants