mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-23 19:59:48 +00:00
Fixed assertion from triggering. We need to check if the commandline map is empty before checking if an arg exists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a4538941a
commit
c4ae8e903c
@ -80,6 +80,8 @@ static void AddArgument(const char *ArgName, Option *Opt) {
|
||||
// options have already been processed and the map has been deleted!
|
||||
//
|
||||
static void RemoveArgument(const char *ArgName, Option *Opt) {
|
||||
if(getOpts().empty()) return;
|
||||
|
||||
#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.
|
||||
|
Loading…
Reference in New Issue
Block a user