mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Don't re-instantiate the std::string in catch block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c3c65806f
commit
a3b4e09715
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user