Skip to content

Commit fd0b8ca

Browse files
committed
fix ast-lowering of TransitiveSubtypeWitness values.
1 parent 4b53fd5 commit fd0b8ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/slang/ast-legalize.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -2623,6 +2623,9 @@ struct LoweringVisitor
26232623
if (auto litVal = dynamic_cast<ConstantIntVal*>(val))
26242624
return val;
26252625

2626+
// We do not use subtype witness for ast lowering, return it unchanged.
2627+
if (auto subtypeWitnessVal = dynamic_cast<SubtypeWitness*>(val))
2628+
return val;
26262629
SLANG_UNEXPECTED("unhandled value kind");
26272630
}
26282631

0 commit comments

Comments
 (0)