diff --git a/clang/include/clang/Lex/MacroInfo.h b/clang/include/clang/Lex/MacroInfo.h index 75c9ca70dfbbf..00c1c3866bbd9 100644 --- a/clang/include/clang/Lex/MacroInfo.h +++ b/clang/include/clang/Lex/MacroInfo.h @@ -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. ///