Skip to content

Commit d7ad86a

Browse files
committed
SIL: Allow setting SILFunction's forwarding substitution map
1 parent 680dd6b commit d7ad86a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/SIL/SILFunction.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,8 +1276,10 @@ class SILFunction
12761276
GenericEnvironment *getGenericEnvironment() const {
12771277
return GenericEnv;
12781278
}
1279-
void setGenericEnvironment(GenericEnvironment *env) {
1279+
void setGenericEnvironment(GenericEnvironment *env,
1280+
SubstitutionMap forwardingSubs=SubstitutionMap()) {
12801281
GenericEnv = env;
1282+
ForwardingSubMap = forwardingSubs;
12811283
}
12821284

12831285
/// Retrieve the generic signature from the generic environment of this

0 commit comments

Comments
 (0)