mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
Add a workaround for a GCC 3.3.2 bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f70c25f796
commit
f98cfc716d
@ -69,7 +69,12 @@ static void AddArgument(const char *ArgName, Option *Opt) {
|
||||
//
|
||||
static void RemoveArgument(const char *ArgName, Option *Opt) {
|
||||
if (CommandLineOptions == 0) return;
|
||||
assert(getOption(ArgName) == Opt && "Arg not in map!");
|
||||
#ifndef NDEBUG
|
||||
// This disgusting HACK is brought to you courtesy of GCC 3.3.2, which ICE's
|
||||
// If we pass ArgName directly into getOption here.
|
||||
std::string Tmp = ArgName;
|
||||
assert(getOption(Tmp) == Opt && "Arg not in map!");
|
||||
#endif
|
||||
CommandLineOptions->erase(ArgName);
|
||||
if (CommandLineOptions->empty()) {
|
||||
delete CommandLineOptions;
|
||||
|
Loading…
Reference in New Issue
Block a user