1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

simplify trivial function

llvm-svn: 30924
This commit is contained in:
Chris Lattner 2006-10-12 23:50:28 +00:00
parent c7283044d1
commit cf5bfb0e80

View 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;
}