[clang] [CIR] Implement Statement Expressions (PR #153677)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 14 16:26:38 PDT 2025
================
@@ -0,0 +1,166 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
----------------
andykaylor wrote:
Can you add a test that requires a cleanup related to the scope of the statement expression?
In the incubator, I see `stmt-expr.c`, `stmt-expr.cpp`, and `stmtexpr-init.c`. I'm not sure if we have enough support for everything included in these tests, but they have some interesting cases, including a commented out test for a statement containing a label that you've added support for.
https://github.com/llvm/llvm-project/pull/153677
More information about the cfe-commits
mailing list