aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Coroutines/CoroInternal.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Coroutines/CoroInternal.h')
-rw-r--r--llvm/lib/Transforms/Coroutines/CoroInternal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Coroutines/CoroInternal.h b/llvm/lib/Transforms/Coroutines/CoroInternal.h
index 401b3df..0856c49 100644
--- a/llvm/lib/Transforms/Coroutines/CoroInternal.h
+++ b/llvm/lib/Transforms/Coroutines/CoroInternal.h
@@ -185,7 +185,8 @@ struct LLVM_LIBRARY_VISIBILITY Shape {
switch (ABI) {
case coro::ABI::Switch:
return FunctionType::get(Type::getVoidTy(FrameTy->getContext()),
- FrameTy->getPointerTo(), /*IsVarArg*/false);
+ PointerType::getUnqual(FrameTy->getContext()),
+ /*IsVarArg=*/false);
case coro::ABI::Retcon:
case coro::ABI::RetconOnce:
return RetconLowering.ResumePrototype->getFunctionType();