From: Sebastian Redl Date: Sun, 11 Jan 2009 13:39:06 +0000 (+0000) Subject: Fix operator precedence. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2726f9ad0a2a97c444a2b8b356c261cba120605a;p=clang Fix operator precedence. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62038 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 5e285b07b9..a67049cf14 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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(); }