[serialization] Fix another scary use of stack memory.

...instead of ASTContext-allocated memory.

Swift SVN r6243
This commit is contained in:
Jordan Rose
2013-07-13 19:37:05 +00:00
parent cf9b8a302e
commit c01b7fb2fd

View File

@@ -1641,7 +1641,7 @@ Type ModuleFile::getType(TypeID TID) {
}
}
boundTy->setSubstitutions(substitutions);
boundTy->setSubstitutions(ctx.AllocateCopy(substitutions));
break;
}