Skip to content

Commit 10f0907

Browse files
committed
Don't inline in CoroSplit
1 parent 8030fe4 commit 10f0907

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

clang/test/CodeGenCoroutines/pr65054.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ MyTask FooBar() {
5555
// FRONTEND: attributes #[[address_attr]] = {{.*}}alwaysinline
5656

5757
// CHECK-O0: define{{.*}}@_Z6FooBarv.resume
58-
// CHECK-O0: call{{.*}}@_ZN7Awaiter13await_suspendESt16coroutine_handleIvE
58+
// CHECK-O0: call{{.*}}@__await_suspend_helper__Z6FooBarv_await(
5959
// CHECK-O0-NOT: store
6060
// CHECK-O0: ret void

llvm/lib/Transforms/Coroutines/CoroSplit.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ void Lowerer::lowerAwaitSuspend(CoroAwaitSuspendInst *CB) {
123123

124124
CB->replaceAllUsesWith(NewCall);
125125
CB->eraseFromParent();
126-
127-
InlineFunctionInfo FnInfo;
128-
auto InlineRes = InlineFunction(*NewCall, FnInfo);
129-
assert(InlineRes.isSuccess() && "Expected inlining to succeed");
130-
(void)InlineRes;
131126
}
132127

133128
void Lowerer::lowerAwaitSuspends(Function &F) {

0 commit comments

Comments
 (0)