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 and MrSidims committed Jul 4, 2024
1 parent 728a96b commit 694445b
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 694445b

Please sign in to comment.