Skip to content

Commit 3eb6581

Browse files
committed
SIL: Don't drop isNoReturn() bit in getFunctionInterfaceTypeWithCaptures()
I don't think this was causing any problems currently, however moving more code over to interface types exposed this.
1 parent 9aba844 commit 3eb6581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/TypeLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ TypeConverter::getFunctionInterfaceTypeWithCaptures(CanAnyFunctionType funcType,
20102010
FunctionType::Representation::Thin);
20112011

20122012
auto extInfo = AnyFunctionType::ExtInfo(FunctionType::Representation::Thin,
2013-
/*noreturn*/ false,
2013+
funcType->isNoReturn(),
20142014
funcType->throws());
20152015

20162016
return CanGenericFunctionType::get(genericSig,

0 commit comments

Comments
 (0)