Skip to content

Commit 91ae8f1

Browse files
authored
Merge pull request #19030 from slavapestov/func-type-arena-fix-4.2
AST: Allocate FunctionTypes containing type variables in the solver arena [4.2]
2 parents 7d204ce + 2777ca1 commit 91ae8f1

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
@@ -3720,7 +3720,7 @@ FunctionType *FunctionType::get(Type input, Type result,
37203720
AnyFunctionType::decomposeInput(input, params);
37213721
void *mem = C.Allocate(sizeof(FunctionType) +
37223722
sizeof(AnyFunctionType::Param) * params.size(),
3723-
alignof(FunctionType));
3723+
alignof(FunctionType), arena);
37243724
return Entry = new (mem) FunctionType(params, input, result,
37253725
properties, info);
37263726
}

0 commit comments

Comments
 (0)