]> granicus.if.org Git - clang/commitdiff
Add parens for || in && in assert. No functionality change.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 7 Nov 2013 11:03:53 +0000 (11:03 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 7 Nov 2013 11:03:53 +0000 (11:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194200 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 9b40afeb7c5a9759367b3b289307de9039793d3c..3c6b3b046de904997f3d334d3b65183bf2952182 100644 (file)
@@ -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