Skip to content

Commit

Permalink
[SPIR-V 1.6] True Label and False Label of an OpBranchConditional mus…
Browse files Browse the repository at this point in the history
…t not be the same (#2528)
  • Loading branch information
vmaksimo authored Jun 26, 2024
1 parent 0db0f98 commit 4a6a174
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/SPIRV/libSPIRV/SPIRVInstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,8 @@ class SPIRVBranchConditional : public SPIRVInstruction {
getCondition()->getType()->isTypeBool());
assert(getTrueLabel()->isForward() || getTrueLabel()->isLabel());
assert(getFalseLabel()->isForward() || getFalseLabel()->isLabel());
if (Module->isAllowedToUseVersion(VersionNumber::SPIRV_1_6))
assert(TrueLabelId != FalseLabelId);
}
SPIRVId ConditionId;
SPIRVId TrueLabelId;
Expand Down

0 comments on commit 4a6a174

Please sign in to comment.