Author: Timm Bäder Date: 2023-09-09T11:07:56+02:00 New Revision: 2744d9b649f79a3f1021164e73b3a4d729cd1963
URL: https://github.com/llvm/llvm-project/commit/2744d9b649f79a3f1021164e73b3a4d729cd1963 DIFF: https://github.com/llvm/llvm-project/commit/2744d9b649f79a3f1021164e73b3a4d729cd1963.diff LOG: [clang][Interp][NFC] Use delegate() vor ParenExprs Now what we have delegate() we can use it here. Added: Modified: clang/lib/AST/Interp/ByteCodeExprGen.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp index 62575ce0d84b8f8..6a492c4c907cde0 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -222,13 +222,8 @@ bool ByteCodeExprGen<Emitter>::VisitFloatingLiteral(const FloatingLiteral *E) { } template <class Emitter> -bool ByteCodeExprGen<Emitter>::VisitParenExpr(const ParenExpr *PE) { - const Expr *SubExpr = PE->getSubExpr(); - - if (DiscardResult) - return this->discard(SubExpr); - - return this->visit(SubExpr); +bool ByteCodeExprGen<Emitter>::VisitParenExpr(const ParenExpr *E) { + return this->delegate(E->getSubExpr()); } template <class Emitter> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits