You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
…on (#120771)
Replace `static void exitWithError(Twine Message, std::string Whence =
"", std::string Hint = "")` std::string with StringRef to remove
constructing Strings on every call or passing by value
Fixes: #100065
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 = "") {
The text was updated successfully, but these errors were encountered: