Skip to content
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

llvm/tools/llvm-cgdata/llvm-cgdata.cpp:69: 2 * clumsy string parameter passing #100065

Open
dcb314 opened this issue Jul 23, 2024 · 0 comments
Open
Labels
code-quality llvm-tools All llvm tools that do not have corresponding tag

Comments

@dcb314
Copy link

dcb314 commented Jul 23, 2024

Static analyser cppcheck says:

trunk/llvm/tools/llvm-cgdata/llvm-cgdata.cpp:69:39: performance: Function parameter 'Hint' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-cgdata/llvm-cgdata.cpp:68:54: performance: Function parameter 'Whence' should be passed by const reference. [passedByValue]

Source code is

static void exitWithError(Twine Message, std::string Whence = "",
std::string Hint = "") {

@EugeneZelenko EugeneZelenko added llvm-tools All llvm tools that do not have corresponding tag and removed llvm:codegen labels Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-quality llvm-tools All llvm tools that do not have corresponding tag
Projects
None yet
Development

No branches or pull requests

2 participants