]> granicus.if.org Git - clang/commitdiff
Fix operator precedence in Doug's most recent commit.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Fri, 23 Oct 2009 19:38:17 +0000 (19:38 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Fri, 23 Oct 2009 19:38:17 +0000 (19:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84964 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h

index 302c508b638a98168ceb88705f203bcb942c5a21..d63e01dcd0d28555d1a2293ed4a2f733b09a4384 100644 (file)
@@ -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 *>(