Skip to content

Commit 2777ca1

Browse files
committed
AST: Allocate FunctionTypes containing type variables in the solver arena
1 parent 7d204ce commit 2777ca1

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)