Author: Aaron Ballman Date: 2023-03-31T08:20:59-04:00 New Revision: 8d7ded37a693b9d6f9d4d887560a8e2f1ca05bd3
URL: https://github.com/llvm/llvm-project/commit/8d7ded37a693b9d6f9d4d887560a8e2f1ca05bd3 DIFF: https://github.com/llvm/llvm-project/commit/8d7ded37a693b9d6f9d4d887560a8e2f1ca05bd3.diff LOG: Fix a simple think-o; NFC This was using a bitwise OR of two boolean member variables, now it's using a logical OR instead. Added: Modified: clang/include/clang/Lex/MacroInfo.h Removed: ################################################################################ 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. /// _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits