Skip to content

Commit 3bf2aec

Browse files
authored
[NFC][Clang] Adopt simplified getTrailingObjects in StmtCXX (#143251)
1 parent 56b9844 commit 3bf2aec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/include/clang/AST/StmtCXX.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class CXXTryStmt final : public Stmt,
8080
CXXTryStmt(EmptyShell Empty, unsigned numHandlers)
8181
: Stmt(CXXTryStmtClass), NumHandlers(numHandlers) { }
8282

83-
Stmt *const *getStmts() const { return getTrailingObjects<Stmt *>(); }
84-
Stmt **getStmts() { return getTrailingObjects<Stmt *>(); }
83+
Stmt *const *getStmts() const { return getTrailingObjects(); }
84+
Stmt **getStmts() { return getTrailingObjects(); }
8585

8686
public:
8787
static CXXTryStmt *Create(const ASTContext &C, SourceLocation tryLoc,
@@ -339,9 +339,9 @@ class CoroutineBodyStmt final
339339
friend class ASTReader;
340340
friend TrailingObjects;
341341

342-
Stmt **getStoredStmts() { return getTrailingObjects<Stmt *>(); }
342+
Stmt **getStoredStmts() { return getTrailingObjects(); }
343343

344-
Stmt *const *getStoredStmts() const { return getTrailingObjects<Stmt *>(); }
344+
Stmt *const *getStoredStmts() const { return getTrailingObjects(); }
345345

346346
public:
347347

0 commit comments

Comments
 (0)