Skip to content

Commit

Permalink
Fix a simple think-o; NFC
Browse files Browse the repository at this point in the history
This was using a bitwise OR of two boolean member variables, now it's
using a logical OR instead.
  • Loading branch information
AaronBallman committed Mar 31, 2023
1 parent aae97f8 commit 8d7ded3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/Lex/MacroInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class MacroInfo {
void setIsGNUVarargs() { IsGNUVarargs = true; }
bool isC99Varargs() const { return IsC99Varargs; }
bool isGNUVarargs() const { return IsGNUVarargs; }
bool isVariadic() const { return IsC99Varargs | IsGNUVarargs; }
bool isVariadic() const { return IsC99Varargs || IsGNUVarargs; }

/// Return true if this macro requires processing before expansion.
///
Expand Down

0 comments on commit 8d7ded3

Please sign in to comment.