mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[serialization] Fix another scary use of stack memory.
...instead of ASTContext-allocated memory. Swift SVN r6243
This commit is contained in:
@@ -1641,7 +1641,7 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
}
|
||||
}
|
||||
|
||||
boundTy->setSubstitutions(substitutions);
|
||||
boundTy->setSubstitutions(ctx.AllocateCopy(substitutions));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user