From: Chris Lattner Date: Thu, 12 Oct 2006 23:50:28 +0000 (+0000) Subject: simplify trivial function X-Git-Tag: android-x86-6.0-r1~1003^2~40267 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f3799d6317e38a996dcea50143cbc15543d8f5c4;p=android-x86%2Fexternal-llvm.git simplify trivial function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30924 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 8af6b2adbf7..662c935c441 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -198,11 +198,7 @@ public: void setValueStr(const char *S) { ValueStr = S; } void setFlag(unsigned Flag, unsigned FlagMask) { - if (Flags & FlagMask) { - error(": Specified two settings for the same option!"); - exit(1); - } - + Flags &= ~FlagMask; Flags |= Flag; }