diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-12 23:50:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-12 23:50:28 +0000 |
commit | f3799d6317e38a996dcea50143cbc15543d8f5c4 (patch) | |
tree | 1cc9725c5ef95f8673175dfefeac35d49802199f | |
parent | 4f77616c28767cf9b7b16ebabdf189423e37c691 (diff) |
simplify trivial function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30924 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/CommandLine.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 8af6b2adbf..662c935c44 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; } |