[clang] [CIR] Upstream support co_return of values from co_await (PR #173174)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 13 18:52:33 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 3080 tests passed
* 7 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExprAggregate.cpp.o</summary>

```
FAILED: tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExprAggregate.cpp.o
sccache /opt/llvm/bin/clang++ -DCLANG_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/lib/CIR/CodeGen -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/CodeGen -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExprAggregate.cpp.o -MF tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExprAggregate.cpp.o.d -o tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExprAggregate.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp:775:3: error: no matching function for call to 'create'
775 |   cir::ScopeOp::create(builder, scopeLoc, /*scopeBuilder=*/
|   ^~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/CIR/Dialect/IR/CIROps.h.inc:25452:18: note: candidate function not viable: cannot bind base class object of type 'mlir::Builder' to derived class reference '::mlir::OpBuilder &' for 1st argument
25452 |   static ScopeOp create(::mlir::OpBuilder &builder, ::mlir::Location location, llvm::function_ref<void(mlir::OpBuilder &, mlir::Type &, mlir::Location)> scopeBuilder);
|                  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/CIR/Dialect/IR/CIROps.h.inc:25455:18: note: candidate function not viable: cannot bind base class object of type 'mlir::Builder' to derived class reference '::mlir::OpBuilder &' for 1st argument
25455 |   static ScopeOp create(::mlir::OpBuilder &builder, ::mlir::Location location, llvm::function_ref<void(mlir::OpBuilder &, mlir::Location)> scopeBuilder);
|                  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/CIR/Dialect/IR/CIROps.h.inc:25453:18: note: candidate function not viable: requires 2 arguments, but 3 were provided
25453 |   static ScopeOp create(::mlir::ImplicitLocOpBuilder &builder, llvm::function_ref<void(mlir::OpBuilder &, mlir::Type &, mlir::Location)> scopeBuilder);
|                  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/CIR/Dialect/IR/CIROps.h.inc:25456:18: note: candidate function not viable: requires 2 arguments, but 3 were provided
25456 |   static ScopeOp create(::mlir::ImplicitLocOpBuilder &builder, llvm::function_ref<void(mlir::OpBuilder &, mlir::Location)> scopeBuilder);
|                  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp:781:37: error: no matching constructor for initialization of 'mlir::OpBuilder::InsertionGuard'
781 |     mlir::OpBuilder::InsertionGuard guard(builder);
|                                     ^     ~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../mlir/include/mlir/IR/Builders.h:350:5: note: candidate constructor not viable: cannot bind base class object of type 'mlir::Builder' to derived class reference 'OpBuilder &' for 1st argument
350 |     InsertionGuard(OpBuilder &builder)
|     ^              ~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../mlir/include/mlir/IR/Builders.h:358:5: note: candidate constructor not viable: no known conversion from 'mlir::Builder' to 'const InsertionGuard' for 1st argument
358 |     InsertionGuard(const InsertionGuard &) = delete;
|     ^              ~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../mlir/include/mlir/IR/Builders.h:364:5: note: candidate constructor not viable: no known conversion from 'mlir::Builder' to 'InsertionGuard' for 1st argument
364 |     InsertionGuard(InsertionGuard &&other) noexcept
|     ^              ~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp:782:13: error: no member named 'restoreInsertionPoint' in 'mlir::Builder'
782 |     builder.restoreInsertionPoint(scopeBegin);
|     ~~~~~~~ ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp:784:51: error: no member named 'getInsertionBlock' in 'mlir::Builder'
784 |                                           builder.getInsertionBlock()};
|                                           ~~~~~~~ ^
4 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/173174


More information about the cfe-commits mailing list