mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Work around GCC PR19958, which causes programs to sometimes crash after
printing help output or version info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b70aaa62b6
commit
a92d12c053
@ -919,6 +919,7 @@ public:
|
|||||||
MoreHelp().clear();
|
MoreHelp().clear();
|
||||||
|
|
||||||
// Halt the program since help information was printed
|
// Halt the program since help information was printed
|
||||||
|
getOpts().clear(); // Don't bother making option dtors remove from map.
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -929,6 +930,7 @@ public:
|
|||||||
if (OptionWasSpecified) {
|
if (OptionWasSpecified) {
|
||||||
std::cerr << "Low Level Virtual Machine (" << PACKAGE_NAME << ") "
|
std::cerr << "Low Level Virtual Machine (" << PACKAGE_NAME << ") "
|
||||||
<< PACKAGE_VERSION << " (see http://llvm.cs.uiuc.edu/)\n";
|
<< PACKAGE_VERSION << " (see http://llvm.cs.uiuc.edu/)\n";
|
||||||
|
getOpts().clear(); // Don't bother making option dtors remove from map.
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user