Skip to content

Commit be690ea

Browse files
[Coroutines] Fix incorrect attribute name coroutine.presplit (NFC) (#78296)
Those are probably leftovers from an old name of the same attribute. Fixed for the sake of consistency. Co-authored-by: Yoni Lavi <[email protected]>
1 parent 662d1cb commit be690ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Transforms/Coroutines/CoroEarly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void Lowerer::lowerEarlyIntrinsics(Function &F) {
203203
if (CII->getInfo().isPreSplit()) {
204204
assert(F.isPresplitCoroutine() &&
205205
"The frontend uses Swtich-Resumed ABI should emit "
206-
"\"coroutine.presplit\" attribute for the coroutine.");
206+
"\"presplitcoroutine\" attribute for the coroutine.");
207207
setCannotDuplicate(CII);
208208
CII->setCoroutineSelf();
209209
CoroId = cast<CoroIdInst>(&I);

mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static CoroMachinery setupCoroMachinery(func::FuncOp func) {
242242
// continuations, and will conditionally branch to cleanup or suspend blocks.
243243

244244
// The switch-resumed API based coroutine should be marked with
245-
// coroutine.presplit attribute to mark the function as a coroutine.
245+
// presplitcoroutine attribute to mark the function as a coroutine.
246246
func->setAttr("passthrough", builder.getArrayAttr(
247247
StringAttr::get(ctx, "presplitcoroutine")));
248248

0 commit comments

Comments
 (0)