diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-10-23 19:38:17 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-10-23 19:38:17 +0000 |
commit | 2cf719c3c3d805f630dfc6b1255e52647820888e (patch) | |
tree | d71c249eb977c05de36d229236f80f8e15b1d3d9 | |
parent | 644be853b87cae94fcabaf309a5e482a8c291fb9 (diff) |
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
-rw-r--r-- | include/clang/AST/Expr.h | 6 |
1 files 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<NameQualifier *> (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<ExplicitTemplateArgumentList *>(this + 1); return reinterpret_cast<ExplicitTemplateArgumentList *>( |