]> granicus.if.org Git - clang/commitdiff
Fix operator precedence.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Sun, 11 Jan 2009 13:39:06 +0000 (13:39 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Sun, 11 Jan 2009 13:39:06 +0000 (13:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62038 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 5e285b07b91644dc73e42465d5e4695f97b5fd91..a67049cf14d61c044c5853cb199a523da21395f5 100644 (file)
@@ -2999,7 +2999,7 @@ Sema::DeclTy *Sema::ActOnTag(Scope *S, unsigned TagType, TagKind TK,
     // Find the scope where we'll be declaring the tag.
     while (S->isClassScope() || 
            (getLangOptions().CPlusPlus && S->isFunctionPrototypeScope()) ||
-           (S->getFlags() & Scope::DeclScope == 0))
+           ((S->getFlags() & Scope::DeclScope) == 0))
       S = S->getParent();
   }