[cfe-commits] r123983 - /cfe/trunk/lib/Sema/SemaStmt.cpp
Douglas Gregor
dgregor at apple.com
Fri Jan 21 10:20:49 PST 2011
Author: dgregor
Date: Fri Jan 21 12:20:49 2011
New Revision: 123983
URL: http://llvm.org/viewvc/llvm-project?rev=123983&view=rev
Log:
We love parentheses
Modified:
cfe/trunk/lib/Sema/SemaStmt.cpp
Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=123983&r1=123982&r2=123983&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Fri Jan 21 12:20:49 2011
@@ -1130,8 +1130,8 @@
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;
More information about the cfe-commits
mailing list