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 (KhronosGroup#2528)
  • Loading branch information
vmaksimo committed Jul 3, 2024
1 parent 01112bf commit dba8385
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 @@ -856,6 +856,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 dba8385

Please sign in to comment.