From 27dddb58da19a228a7ffb0e3dafa0d29968fea69 Mon Sep 17 00:00:00 2001 From: David Zarzycki Date: Sat, 15 Dec 2018 10:12:10 -0500 Subject: [PATCH] [SIL] Do not drop inner ExtInfo while rebuilding FunctionTypes --- lib/SIL/SILFunctionType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SIL/SILFunctionType.cpp b/lib/SIL/SILFunctionType.cpp index 64254fb3c5d79..5d1483017099e 100644 --- a/lib/SIL/SILFunctionType.cpp +++ b/lib/SIL/SILFunctionType.cpp @@ -2713,7 +2713,7 @@ TypeConverter::getLoweredFormalTypes(SILDeclRef constant, // Build the curried function type. auto inner = CanFunctionType::get(llvm::makeArrayRef(bridgedParams), - bridgedResultType); + bridgedResultType, innerExtInfo); auto curried = CanAnyFunctionType::get(genericSig, {selfParam}, inner, extInfo);