Fix typo in validation message (#3122)

This commit is contained in:
Kai Burjack 2019-12-27 16:47:16 +01:00 committed by David Neto
parent 578c5ac133
commit fad92f1e7e
2 changed files with 4 additions and 4 deletions

View File

@ -769,7 +769,7 @@ spv_result_t StructuredControlFlowChecks(
<< "Header block " << _.getIdName(block->id())
<< " is contained in the " << construct_name
<< " construct headed by " << _.getIdName(header->id())
<< ", but it's merge block " << _.getIdName(merge_id)
<< ", but its merge block " << _.getIdName(merge_id)
<< " is not";
}
}

View File

@ -2076,7 +2076,7 @@ TEST_P(ValidateCFG, ContinueTargetCanBeMergeBlockForNestedStructure) {
getDiagnosticString(),
HasSubstr("Header block 3[%if_head] is contained in the loop construct "
"headed "
"by 2[%loop], but it's merge block 5[%if_merge] is not"));
"by 2[%loop], but its merge block 5[%if_merge] is not"));
} else {
EXPECT_THAT(SPV_SUCCESS, ValidateInstructions());
}
@ -4147,7 +4147,7 @@ OpFunctionEnd
getDiagnosticString(),
HasSubstr(
"Header block 3[%body] is contained in the loop construct headed by "
"1[%loop], but it's merge block 2[%continue] is not"));
"1[%loop], but its merge block 2[%continue] is not"));
}
TEST_F(ValidateCFG, ContinueCannotBeLoopMergeTarget) {
@ -4184,7 +4184,7 @@ OpFunctionEnd
getDiagnosticString(),
HasSubstr(
"Header block 3[%inner] is contained in the loop construct headed by "
"1[%loop], but it's merge block 2[%continue] is not"));
"1[%loop], but its merge block 2[%continue] is not"));
}
} // namespace