From: Sebastian Redl Date: Fri, 23 Oct 2009 19:38:17 +0000 (+0000) Subject: Fix operator precedence in Doug's most recent commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cf719c3c3d805f630dfc6b1255e52647820888e;p=clang Fix operator precedence in Doug's most recent commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84964 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 302c508b63..d63e01dcd0 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -380,7 +380,7 @@ class DeclRefExpr : public Expr { /// \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 (this + 1); @@ -394,10 +394,10 @@ class DeclRefExpr : public Expr { /// \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(this + 1); return reinterpret_cast(