From 2cf719c3c3d805f630dfc6b1255e52647820888e Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Fri, 23 Oct 2009 19:38:17 +0000 Subject: [PATCH] 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 --- include/clang/AST/Expr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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( -- 2.40.0