]> granicus.if.org Git - clang/commitdiff
We love parentheses
authorDouglas Gregor <dgregor@apple.com>
Fri, 21 Jan 2011 18:20:49 +0000 (18:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 21 Jan 2011 18:20:49 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123983 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmt.cpp

index 3bd9e453c9ac4431e5420e854aab2c3acdff61a1..7010d48d1c703194f43ae8f35e6f8e111f9cfe91 100644 (file)
@@ -1130,8 +1130,8 @@ const VarDecl *Sema::getCopyElisionCandidate(QualType ReturnType,
   if (VD->hasLocalStorage() && !VD->isExceptionVariable() &&
       !VD->getType()->isReferenceType() && !VD->hasAttr<BlocksAttr>() &&
       !VD->getType().isVolatileQualified() &&
-      (VD->getKind() == Decl::Var ||
-       AllowFunctionParameter && VD->getKind() == Decl::ParmVar))
+      ((VD->getKind() == Decl::Var) ||
+       (AllowFunctionParameter && VD->getKind() == Decl::ParmVar)))
     return VD;
   
   return 0;