From: Douglas Gregor Date: Fri, 21 Jan 2011 18:20:49 +0000 (+0000) Subject: We love parentheses X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a46c77813af1241139b81a086b539e4d734cb86;p=clang We love parentheses git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123983 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 3bd9e453c9..7010d48d1c 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -1130,8 +1130,8 @@ const VarDecl *Sema::getCopyElisionCandidate(QualType ReturnType, if (VD->hasLocalStorage() && !VD->isExceptionVariable() && !VD->getType()->isReferenceType() && !VD->hasAttr() && !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;