Skip to content

Commit 0ad5a8f

Browse files
Fix CI error
1 parent 7e1968a commit 0ad5a8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ CIRGenFunction::emitCoroutineBody(const CoroutineBodyStmt &s) {
137137
/*thenBuilder=*/[&](mlir::OpBuilder &b, mlir::Location loc) {
138138
builder.CIRBaseBuilderTy::createStore(
139139
loc, emitScalarExpr(s.getAllocate()), storeAddr);
140-
builder.create<cir::YieldOp>(loc);
140+
cir::YieldOp::create(builder, loc);
141141
});
142142
curCoro.data->coroBegin =
143143
emitCoroBeginBuiltinCall(
144144
openCurlyLoc,
145-
builder.create<cir::LoadOp>(openCurlyLoc, allocaTy, storeAddr))
145+
cir::LoadOp::create(builder, openCurlyLoc, allocaTy, storeAddr))
146146
.getResult();
147147

148148
// Handle allocation failure if 'ReturnStmtOnAllocFailure' was provided.

0 commit comments

Comments
 (0)