llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Douglas Yung (dyung) <details> <summary>Changes</summary> Reverts llvm/llvm-project#<!-- -->230054 This is causing a test failure on a Windows bot: https://lab.llvm.org/buildbot/#/builders/46/builds/42541 --- Full diff: https://github.com/llvm/llvm-project/pull/230734.diff 2 Files Affected: - (modified) clang/lib/Parse/ParseDecl.cpp (+1-3) - (modified) clang/test/Interpreter/execute.cpp (-4) ``````````diff diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index a3567d618cfa52..2f326451c3f13d 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -5873,10 +5873,8 @@ Parser::DeclGroupPtrTy Parser::ParseTopLevelStmtDecl() { TopLevelStmtDecl *TLSD = Actions.ActOnStartTopLevelStmtDecl(getCurScope()); StmtResult R = ParseStatementOrDeclaration(Stmts, SubStmtCtx); Actions.ActOnFinishTopLevelStmtDecl(TLSD, R.get()); - if (!R.isUsable()) { + if (!R.isUsable()) R = Actions.ActOnNullStmt(Tok.getLocation()); - TLSD->setStmt(R.get()); - } if (Tok.is(tok::annot_repl_input_end) && Tok.getAnnotationValue() != nullptr) { diff --git a/clang/test/Interpreter/execute.cpp b/clang/test/Interpreter/execute.cpp index 65dbc2d70a90f1..82cd70a93980a7 100644 --- a/clang/test/Interpreter/execute.cpp +++ b/clang/test/Interpreter/execute.cpp @@ -19,7 +19,3 @@ auto r2 = printf("S[f=%f, m=0x%llx]\n", s.f, reinterpret_cast<unsigned long long inline int foo() { return 42; } int r3 = foo(); - -return; -printf("not crashed\n"); -// CHECK-NEXT: not crashed `````````` </details> https://github.com/llvm/llvm-project/pull/230734 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
