[cfe-commits] r84964 - /cfe/trunk/include/clang/AST/Expr.h
Sebastian Redl
sebastian.redl at getdesigned.at
Fri Oct 23 12:38:18 PDT 2009
Author: cornedbee
Date: Fri Oct 23 14:38:17 2009
New Revision: 84964
URL: http://llvm.org/viewvc/llvm-project?rev=84964&view=rev
Log:
Fix operator precedence in Doug's most recent commit.
Modified:
cfe/trunk/include/clang/AST/Expr.h
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=84964&r1=84963&r2=84964&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Fri Oct 23 14:38:17 2009
@@ -380,7 +380,7 @@
/// \brief Retrieve the qualifier that preceded the declaration name, if any.
NameQualifier *getNameQualifier() {
- if (DecoratedD.getInt() & HasQualifierFlag == 0)
+ if ((DecoratedD.getInt() & HasQualifierFlag) == 0)
return 0;
return reinterpret_cast<NameQualifier *> (this + 1);
@@ -394,10 +394,10 @@
/// \brief Retrieve the explicit template argument list that followed the
/// member template name, if any.
ExplicitTemplateArgumentList *getExplicitTemplateArgumentList() {
- if (DecoratedD.getInt() & HasExplicitTemplateArgumentListFlag == 0)
+ if ((DecoratedD.getInt() & HasExplicitTemplateArgumentListFlag) == 0)
return 0;
- if (DecoratedD.getInt() & HasQualifierFlag == 0)
+ if ((DecoratedD.getInt() & HasQualifierFlag) == 0)
return reinterpret_cast<ExplicitTemplateArgumentList *>(this + 1);
return reinterpret_cast<ExplicitTemplateArgumentList *>(
More information about the cfe-commits
mailing list