SIL: Set the context generic params of reabstraction thunks less greedily.

Don't try to set the generic params of a reabstraction thunk until we've established it hasn't already been defined, fixing an issue where the same generic reabstraction pattern occurred in different contexts and we ended up clobbering the archetypes of a thunk that was already defined in terms of other archetypes.

Swift SVN r13964
This commit is contained in:
Joe Groff
2014-02-16 16:56:43 +00:00
parent 1322c08fd6
commit df356b475b
5 changed files with 9 additions and 10 deletions

View File

@@ -282,7 +282,6 @@ public:
SILFunction *getOrCreateSharedFunction(SILLocation loc,
StringRef name,
CanSILFunctionType type,
GenericParamList *contextGenericParams,
IsBare_t isBareSILFunction,
IsTransparent_t isTransparent);