Skip to content

Commit bae4c82

Browse files
committed
Wasm: Use ApplyStatically in the derived classes.
These were one of two remaining sources of `Apply` nodes that the backend could turn into `ApplyStatically` but that the optimizer could not (because they are created after the optimizer).
1 parent b7af05f commit bae4c82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

linker/shared/src/main/scala/org/scalajs/linker/backend/wasmemitter/DerivedClasses.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ object DerivedClasses {
116116
method.originalName,
117117
method.args,
118118
method.resultType,
119-
Some(Apply(EAF, selectField, method.name, method.args.map(_.ref))(method.resultType))
119+
Some(ApplyStatically(EAF, selectField, className, method.name,
120+
method.args.map(_.ref))(method.resultType))
120121
)(method.optimizerHints, method.version)
121122
}
122123

0 commit comments

Comments
 (0)