[cfe-commits] r38793 - /cfe/cfe/trunk/Lex/MacroExpander.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:24:41 PDT 2007
Author: sabre
Date: Wed Jul 11 11:24:41 2007
New Revision: 38793
URL: http://llvm.org/viewvc/llvm-project?rev=38793&view=rev
Log:
Fix precedence bug
Modified:
cfe/cfe/trunk/Lex/MacroExpander.cpp
Modified: cfe/cfe/trunk/Lex/MacroExpander.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/MacroExpander.cpp?rev=38793&r1=38792&r2=38793&view=diff
==============================================================================
--- cfe/cfe/trunk/Lex/MacroExpander.cpp (original)
+++ cfe/cfe/trunk/Lex/MacroExpander.cpp Wed Jul 11 11:24:41 2007
@@ -246,7 +246,7 @@
// If this is a function-like macro, expand the arguments and change
// MacroTokens to point to the expanded tokens.
- if (Macro->isFunctionLike() && Macro->getNumArgs() || Macro->isC99Varargs())
+ if (Macro->isFunctionLike() && (Macro->getNumArgs() || Macro->isC99Varargs()))
ExpandFunctionArguments();
// Mark the macro as currently disabled, so that it is not recursively
More information about the cfe-commits
mailing list