This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe00a8d081d78: Fix codegen for coroutine with
function-try-block (authored by MatzeB).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTI
MatzeB added inline comments.
Comment at: clang/lib/CodeGen/CGCoroutine.cpp:724-730
+ Stmt *BodyStmt = S.getBody();
+ CompoundStmt *Body = dyn_cast(BodyStmt);
+ if (Body == nullptr) {
+Body =
+CompoundStmt::Create(getContext(), {BodyStmt}, FPOpt
ChuanqiXu accepted this revision.
ChuanqiXu added a comment.
This revision is now accepted and ready to land.
Since the patch itself is good and not large. Let me handle the trivial
refactoring later.
Comment at: clang/lib/CodeGen/CGCoroutine.cpp:724-730
+ Stmt *BodyStmt
MatzeB added inline comments.
Comment at: clang/lib/CodeGen/CGCoroutine.cpp:724-730
+ Stmt *BodyStmt = S.getBody();
+ CompoundStmt *Body = dyn_cast(BodyStmt);
+ if (Body == nullptr) {
+Body =
+CompoundStmt::Create(getContext(), {BodyStmt}, FPOpt
MatzeB updated this revision to Diff 509173.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146758/new/
https://reviews.llvm.org/D146758
Files:
clang/include/clang/AST/StmtCXX.h
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/StmtCXX.cpp
clang/li
ChuanqiXu added inline comments.
Comment at: clang/lib/CodeGen/CGCoroutine.cpp:724-730
+ Stmt *BodyStmt = S.getBody();
+ CompoundStmt *Body = dyn_cast(BodyStmt);
+ if (Body == nullptr) {
+Body =
+CompoundStmt::Create(getContext(), {BodyStmt}, FP
MatzeB updated this revision to Diff 508792.
MatzeB marked an inline comment as done.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146758/new/
https://reviews.llvm.org/D146758
Files:
clang/include/clang/AST/StmtCXX.h
clang/lib/AST/ASTImporter.c
ChuanqiXu requested changes to this revision.
ChuanqiXu added a comment.
This revision now requires changes to proceed.
Thanks for finding this! We didn't notice this before.
Comment at: clang/lib/CodeGen/CGCoroutine.cpp:724-730
+ Stmt *BodyStmt = S.getBody();
+ Compo
MatzeB added inline comments.
Comment at: clang/test/CodeGenCoroutines/coro-function-try-block.cpp:1
+// RUN: %clang_cc1 -std=c++20 -triple=x86_64-- -emit-llvm -fcxx-exceptions \
+// RUN:-disable-llvm-passes %s -o - | FileCheck %s
bruno wrote:
> Space
bruno accepted this revision.
bruno added a comment.
This revision is now accepted and ready to land.
LGTM! @ChuanqiXu wdyt?
Comment at: clang/test/CodeGenCoroutines/coro-function-try-block.cpp:1
+// RUN: %clang_cc1 -std=c++20 -triple=x86_64-- -emit-llvm -fcxx-exceptions \
+//
MatzeB created this revision.
MatzeB added reviewers: GorNishanov, EricWF, ChuanqiXu, bruno.
Herald added subscribers: modimo, wenlei, martong, mcrosier.
Herald added a reviewer: shafik.
Herald added a project: All.
MatzeB requested review of this revision.
Herald added a project: clang.
Herald add
11 matches
Mail list logo