From 746d47bb491e0b97e35ab373b4b78d33b9a61164 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 10 Jul 2024 16:17:10 -0700 Subject: Specialize address space during spirv legalization. (#4600) * Specialize address space during spirv legalization. * Fix. * Fix building doc. * Fix cmake. * Update assert. --- source/slang/slang-emit-spirv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-emit-spirv.cpp') diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 8c7232963..1040017da 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -4905,7 +4905,7 @@ struct SPIRVEmitContext const SpvWord baseId = getID(ensureInst(base)); // We might replace resultType with a different storage class equivalent - auto resultType = as(inst->getFullType()); + auto resultType = as(inst->getDataType()); SLANG_ASSERT(resultType); if(const auto basePtrType = as(base->getDataType())) -- cgit v1.2.3