Skip to content

Conversation

kripken
Copy link
Member

@kripken kripken commented Feb 15, 2024

We validate functions in parallel, but function-parallel passes do not run on imports,
so we did not issue a validation error on an import using a disallowed type, for example.

All the changes in visitFunction are just to group all the parts using body to the
end, and putting them behind a check for body.

(diff without whitespace is smaller)

Found using #6310 #6312

@kripken kripken requested review from aheejin and tlively February 15, 2024 17:47
@tlively
Copy link
Member

tlively commented Feb 16, 2024

function-parallel passes do not run on imports

I wonder where else we are messing this up...

@kripken kripken merged commit 4031538 into WebAssembly:main Feb 20, 2024
@kripken kripken deleted the validate.imports branch February 20, 2024 23:21
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
We validate functions in parallel, but function-parallel passes do not run on imports, so we did not issue a validation error on an import using a disallowed type, for example. All the changes in visitFunction are just to group all the parts using body to the end, and putting them behind a check for body.
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants