Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions clang/include/clang/AST/StmtCXX.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:

Expand Down
Loading