r194200 - Add parens for || in && in assert. No functionality change.
Benjamin Kramer
benny.kra at googlemail.com
Thu Nov 7 03:03:53 PST 2013
Author: d0k
Date: Thu Nov 7 05:03:53 2013
New Revision: 194200
URL: http://llvm.org/viewvc/llvm-project?rev=194200&view=rev
Log:
Add parens for || in && in assert. No functionality change.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=194200&r1=194199&r2=194200&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu Nov 7 05:03:53 2013
@@ -12057,8 +12057,8 @@ void Sema::CleanupVarDeclMarking() {
static void DoMarkVarDeclReferenced(Sema &SemaRef, SourceLocation Loc,
VarDecl *Var, Expr *E) {
- assert(!E || isa<DeclRefExpr>(E) || isa<MemberExpr>(E)
- && "Invalid Expr argument to DoMarkVarDeclReferenced");
+ assert((!E || isa<DeclRefExpr>(E) || isa<MemberExpr>(E)) &&
+ "Invalid Expr argument to DoMarkVarDeclReferenced");
Var->setReferenced();
// If the context is not PotentiallyEvaluated and not Unevaluated
More information about the cfe-commits
mailing list