[spirv-reader] Fix labels in CFG tests

Bug: tint:3
Change-Id: I13c67649d7e630828eeae34a2b4cd5612d5f2217
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/20420
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
David Neto 2020-04-24 19:11:43 +00:00
parent 75dbd8739e
commit 597f52add2
1 changed files with 4 additions and 1 deletions

View File

@ -576,7 +576,7 @@ TEST_F(SpvParserTest, RegisterMerges_SelectionMerge_BadTerminator) {
%10 = OpLabel %10 = OpLabel
OpSelectionMerge %99 None OpSelectionMerge %99 None
OpBranch %30 OpBranch %20
%20 = OpLabel %20 = OpLabel
OpBranch %99 OpBranch %99
@ -606,6 +606,9 @@ TEST_F(SpvParserTest, RegisterMerges_LoopMerge_BadTerminator) {
OpSwitch %selector %99 30 %30 OpSwitch %selector %99 30 %30
%30 = OpLabel %30 = OpLabel
OpBranch %99
%40 = OpLabel
OpBranch %20 OpBranch %20
%99 = OpLabel %99 = OpLabel