diff --git a/clang/include/clang/AST/StmtCXX.h b/clang/include/clang/AST/StmtCXX.h --- a/clang/include/clang/AST/StmtCXX.h +++ b/clang/include/clang/AST/StmtCXX.h @@ -497,16 +497,10 @@ } child_range children() { - if (!getOperand()) - return child_range(SubStmts + SubStmt::PromiseCall, - SubStmts + SubStmt::Count); return child_range(SubStmts, SubStmts + SubStmt::Count); } const_child_range children() const { - if (!getOperand()) - return const_child_range(SubStmts + SubStmt::PromiseCall, - SubStmts + SubStmt::Count); return const_child_range(SubStmts, SubStmts + SubStmt::Count); }