summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-10-23 19:38:17 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-10-23 19:38:17 +0000
commitf212a92bb62e0efdea33eaffa11d656648fd83f5 (patch)
tree92fb9ce822c6fe88063a7a973f36415c9acfb467
parentc057f423a079bf67942cd1e4b3c29953bbd48703 (diff)
downloadbcm5719-llvm-f212a92bb62e0efdea33eaffa11d656648fd83f5.tar.gz
bcm5719-llvm-f212a92bb62e0efdea33eaffa11d656648fd83f5.zip
Fix operator precedence in Doug's most recent commit.
llvm-svn: 84964
-rw-r--r--clang/include/clang/AST/Expr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index 302c508b638..d63e01dcd0d 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/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 *>(
OpenPOWER on IntegriCloud