Skip to content

Commit dbf6c77

Browse files
committed
AST: Allocate FunctionTypes containing type variables in the solver arena
1 parent c69097f commit dbf6c77

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
@@ -3630,7 +3630,7 @@ FunctionType *FunctionType::getOld(Type input, Type result,
36303630
AnyFunctionType::decomposeInput(input, params);
36313631
void *mem = C.Allocate(sizeof(FunctionType) +
36323632
sizeof(AnyFunctionType::Param) * params.size(),
3633-
alignof(FunctionType));
3633+
alignof(FunctionType), arena);
36343634
return Entry = new (mem) FunctionType(params, input, result,
36353635
properties, info);
36363636
}

0 commit comments

Comments
 (0)