Bug 188489
Summary: | Unary - applied to a variable causes an exception in ConstexprFolder | ||
---|---|---|---|
Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 176199 |
Myles C. Maxfield
visitCallExpression() in ConstexprFolder calls unifyNode() on the argument, which can be a variableRef, which asks the "variable" parameter what its unifyNode() is, but it hasn't been set because we are doing this before the NameResolver or Checker has run.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
Perhaps the solution is not to call unifyNode in ConstexprFolder because the only time we use ConstexprFolder is before the "variable" parameter has been set.
Myles C. Maxfield
*** This bug has been marked as a duplicate of bug 188873 ***
Myles C. Maxfield
This is done.
Myles C. Maxfield
Migrated to https://github.com/gpuweb/WHLSL/issues/103