Skip to content

Commit c8ca144

Browse files
committed
Fix.
1 parent b1da5af commit c8ca144

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/slang/slang-ir-spirv-legalize.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,8 @@ struct SPIRVLegalizationContext : public SourceEmitterBase
638638
}
639639

640640
auto varLayout = getVarLayout(varInst);
641+
if (!varLayout)
642+
return AddressSpace::Generic;
641643

642644
auto typeLayout = varLayout->getTypeLayout()->unwrapArray();
643645
if (auto parameterGroupTypeLayout = as<IRParameterGroupTypeLayout>(typeLayout))

0 commit comments

Comments
 (0)