Skip to content
Snippets Groups Projects
Commit f68090d6 authored by Reid Spencer's avatar Reid Spencer
Browse files

Don't re-instantiate the std::string in catch block.

llvm-svn: 16159
parent 3f4bdc96
No related branches found
No related tags found
No related merge requests found
......@@ -323,7 +323,7 @@ int main(int argc, char **argv) {
// All is good, return success
return 0;
} catch (std::string& msg) {
} catch (const std::string& msg) {
std::cerr << argv[0] << ": " << msg << "\n";
} catch (...) {
std::cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment