Skip to content

Fix infinite loop in AsmConstWalker::visitCall #2303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 16, 2019

Conversation

quantum5
Copy link
Member

Show an error message when the local.get can't be traced back to a constant in the first argument to emscripten_asm_const_*, and suggest that the user try EM_JS.

@@ -0,0 +1,14 @@
from scripts.test.shared import WASM_EMSCRIPTEN_FINALIZE, run_process
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be better named test_finalize.py?

Can you add a copyright header?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am just using the lld name because all the other finalize tests are under test/lld.

As for copyright header, none of the other unit test files have it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would call it test_finalize. The other tests in test/lld are there because they are actually generated by lld itself. In this case you can hard-crafting the input.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@quantum5 quantum5 merged commit 86b8cf6 into WebAssembly:master Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants