Skip to content

Commit dc43323

Browse files
committed
Fix.
1 parent c8ca144 commit dc43323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,9 @@ struct SPIRVLegalizationContext : public SourceEmitterBase
795795
{
796796
addressSpace = AddressSpace::GroupShared;
797797
}
798-
else if (const auto varLayout = getVarLayout(inst))
798+
else
799799
{
800-
auto cls = getGlobalParamAddressSpace(varLayout);
800+
auto cls = getGlobalParamAddressSpace(inst);
801801
if (cls != AddressSpace::Generic)
802802
addressSpace = cls;
803803
}

0 commit comments

Comments
 (0)