File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -2885,23 +2885,10 @@ TypeConverter::checkFunctionForABIDifferences(SILModule &M,
2885
2885
return ABIDifference::NeedsThunk;
2886
2886
}
2887
2887
2888
- // There is no ABI compatibility between non-throws and throws on WebAssembly,
2889
- // so need thunk.
2890
- if (M.getASTContext ().LangOpts .Target .isOSBinFormatWasm ()) {
2891
- if (!fnTy1->hasErrorResult () && fnTy2->hasErrorResult ()) {
2892
- return ABIDifference::NeedsThunk;
2893
- }
2894
- }
2895
-
2896
2888
auto rep1 = fnTy1->getRepresentation (), rep2 = fnTy2->getRepresentation ();
2897
2889
if (rep1 != rep2) {
2898
2890
if (rep1 == SILFunctionTypeRepresentation::Thin &&
2899
2891
rep2 == SILFunctionTypeRepresentation::Thick) {
2900
- // There is no ABI compatibility between thin and thick on WebAssembly,
2901
- // so need thunk.
2902
- if (M.getASTContext ().LangOpts .Target .isOSBinFormatWasm ()) {
2903
- return ABIDifference::NeedsThunk;
2904
- }
2905
2892
if (DifferentFunctionTypesHaveDifferentRepresentation) {
2906
2893
// FIXME: check whether the representations are compatible modulo
2907
2894
// context
You can’t perform that action at this time.
0 commit comments