diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-21 18:20:49 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-21 18:20:49 +0000 |
commit | 4a46c77813af1241139b81a086b539e4d734cb86 (patch) | |
tree | 2b240537978a5017c192777872e5506032f3d1c9 /lib/Sema/SemaStmt.cpp | |
parent | f5d8f466c3eebaffc51468812bdcbe7f0fe4891a (diff) |
We love parentheses
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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; |