Author: Stephen Kelly Date: 2021-01-17T18:47:17Z New Revision: 9a7fb0848771e3d38baf10e4d1078b50dd884265
URL: https://github.com/llvm/llvm-project/commit/9a7fb0848771e3d38baf10e4d1078b50dd884265 DIFF: https://github.com/llvm/llvm-project/commit/9a7fb0848771e3d38baf10e4d1078b50dd884265.diff LOG: NFC: Minor cleanup of function calls Added: Modified: clang/lib/ASTMatchers/ASTMatchFinder.cpp Removed: ################################################################################ diff --git a/clang/lib/ASTMatchers/ASTMatchFinder.cpp b/clang/lib/ASTMatchers/ASTMatchFinder.cpp index e35600a083d3..8ddd3c87e09d 100644 --- a/clang/lib/ASTMatchers/ASTMatchFinder.cpp +++ b/clang/lib/ASTMatchers/ASTMatchFinder.cpp @@ -257,10 +257,7 @@ class MatchChildASTVisitor return true; ScopedIncrement ScopedDepth(&CurrentDepth); - if (!match(*Node->getDecomposedForm().LHS) || - !match(*Node->getDecomposedForm().RHS)) - return false; - return true; + return match(*Node->getLHS()) && match(*Node->getRHS()); } bool TraverseLambdaExpr(LambdaExpr *Node) { if (!Finder->isTraversalIgnoringImplicitNodes()) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits