We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c8cb41 commit 061de13Copy full SHA for 061de13
llvm-spirv/lib/SPIRV/libSPIRV/SPIRVInstruction.h
@@ -850,6 +850,8 @@ class SPIRVBranchConditional : public SPIRVInstruction {
850
getCondition()->getType()->isTypeBool());
851
assert(getTrueLabel()->isForward() || getTrueLabel()->isLabel());
852
assert(getFalseLabel()->isForward() || getFalseLabel()->isLabel());
853
+ if (Module->isAllowedToUseVersion(VersionNumber::SPIRV_1_6))
854
+ assert(TrueLabelId != FalseLabelId);
855
}
856
SPIRVId ConditionId;
857
SPIRVId TrueLabelId;
0 commit comments