Update spirv-tools to v2021.4 (#4862)
This commit is contained in:
@@ -181,8 +181,9 @@ bool Construct::IsStructuredExit(ValidationState_t& _, BasicBlock* dest) const {
|
||||
for (auto& use : block->label()->uses()) {
|
||||
if ((use.first->opcode() == SpvOpLoopMerge ||
|
||||
use.first->opcode() == SpvOpSelectionMerge) &&
|
||||
use.second == 1)
|
||||
use.second == 1 && use.first->block()->dominates(*block)) {
|
||||
return use.first->block();
|
||||
}
|
||||
}
|
||||
return block->immediate_dominator();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user