We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acf77bd commit e81f566Copy full SHA for e81f566
llvm/lib/Transforms/Coroutines/CoroInternal.h
@@ -210,10 +210,9 @@ struct LLVM_LIBRARY_VISIBILITY Shape {
210
211
FunctionType *getResumeFunctionType() const {
212
switch (ABI) {
213
- case coro::ABI::Switch: {
214
- auto *FnPtrTy = getSwitchResumePointerType();
215
- return cast<FunctionType>(FnPtrTy->getPointerElementType());
216
- }
+ case coro::ABI::Switch:
+ return FunctionType::get(Type::getVoidTy(FrameTy->getContext()),
+ FrameTy->getPointerTo(), /*IsVarArg*/false);
217
case coro::ABI::Retcon:
218
case coro::ABI::RetconOnce:
219
return RetconLowering.ResumePrototype->getFunctionType();
0 commit comments