[cfe-commits] r62038 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sun Jan 11 05:39:07 PST 2009


Author: cornedbee
Date: Sun Jan 11 07:39:06 2009
New Revision: 62038

URL: http://llvm.org/viewvc/llvm-project?rev=62038&view=rev
Log:
Fix operator precedence.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=62038&r1=62037&r2=62038&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Sun Jan 11 07:39:06 2009
@@ -2999,7 +2999,7 @@
     // 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();
   }
 





More information about the cfe-commits mailing list