Bug 188489

Summary: Unary - applied to a variable causes an exception in ConstexprFolder
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 176199    

Description Myles C. Maxfield 2018-08-11 22:03:19 PDT
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.
Comment 1 Myles C. Maxfield 2018-08-11 22:06:53 PDT
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.
Comment 2 Myles C. Maxfield 2018-08-29 17:24:08 PDT

*** This bug has been marked as a duplicate of bug 188873 ***
Comment 3 Myles C. Maxfield 2018-08-29 17:24:13 PDT
This is done.
Comment 4 Myles C. Maxfield 2018-10-13 15:37:51 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/103