https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143251
None >From 9449af262b9116249d1626ad802abefa85f6faf7 Mon Sep 17 00:00:00 2001 From: Rahul Joshi <rjo...@nvidia.com> Date: Sat, 7 Jun 2025 04:23:38 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtCXX --- clang/include/clang/AST/StmtCXX.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/include/clang/AST/StmtCXX.h b/clang/include/clang/AST/StmtCXX.h index a15a445fbea40..5d68d3ef64a20 100644 --- a/clang/include/clang/AST/StmtCXX.h +++ b/clang/include/clang/AST/StmtCXX.h @@ -80,8 +80,8 @@ class CXXTryStmt final : public Stmt, CXXTryStmt(EmptyShell Empty, unsigned numHandlers) : Stmt(CXXTryStmtClass), NumHandlers(numHandlers) { } - Stmt *const *getStmts() const { return getTrailingObjects<Stmt *>(); } - Stmt **getStmts() { return getTrailingObjects<Stmt *>(); } + Stmt *const *getStmts() const { return getTrailingObjects(); } + Stmt **getStmts() { return getTrailingObjects(); } public: static CXXTryStmt *Create(const ASTContext &C, SourceLocation tryLoc, @@ -339,9 +339,9 @@ class CoroutineBodyStmt final friend class ASTReader; friend TrailingObjects; - Stmt **getStoredStmts() { return getTrailingObjects<Stmt *>(); } + Stmt **getStoredStmts() { return getTrailingObjects(); } - Stmt *const *getStoredStmts() const { return getTrailingObjects<Stmt *>(); } + Stmt *const *getStoredStmts() const { return getTrailingObjects(); } public: _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits