Skip to content

Commit 2e5b398

Browse files
authored
Merge pull request swiftlang#18990 from slavapestov/func-type-arena-fix
AST: Allocate FunctionTypes containing type variables in the solver arena
2 parents 641a70a + dbf6c77 commit 2e5b398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3639,7 +3639,7 @@ FunctionType *FunctionType::getOld(Type input, Type result,
36393639
AnyFunctionType::decomposeInput(input, params);
36403640
void *mem = C.Allocate(sizeof(FunctionType) +
36413641
sizeof(AnyFunctionType::Param) * params.size(),
3642-
alignof(FunctionType));
3642+
alignof(FunctionType), arena);
36433643
return Entry = new (mem) FunctionType(params, input, result,
36443644
properties, info);
36453645
}

0 commit comments

Comments
 (0)