Change when instruction is registered in validator. (#1840)
When doing the validator checks, an instruction is currently registered at the end of IdPass. This creates an inconsistency. In IdPass, an instruction that uses its own result will treat that use as a forward reference. Then in the following passes it will not because the definition can be found. It seems best to update the state after all of the check have been done for the current instruction. This makes it consistent for all of the passes. This makes a different when trying to verify OpTypeStruct. Fixes https://crbug.com/874372.
Loading
Please register or sign in to comment