OSDN Git Service

simplify trivial function
authorChris Lattner <sabre@nondot.org>
Thu, 12 Oct 2006 23:50:28 +0000 (23:50 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 12 Oct 2006 23:50:28 +0000 (23:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30924 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index 8af6b2a..662c935 100644 (file)
@@ -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;
   }