summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-spirv.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-07-10 16:17:10 -0700
committerGitHub <noreply@github.com>2024-07-10 16:17:10 -0700
commit746d47bb491e0b97e35ab373b4b78d33b9a61164 (patch)
tree74e0936472d911d8c6c561ca4b21e800306c5f51 /source/slang/slang-emit-spirv.cpp
parent82f308ca692878bfe9844b86629c6536b4cd0f0a (diff)
Specialize address space during spirv legalization. (#4600)
* Specialize address space during spirv legalization. * Fix. * Fix building doc. * Fix cmake. * Update assert.
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
-rw-r--r--source/slang/slang-emit-spirv.cpp2
1 files changed, 1 insertions, 1 deletions
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<IRPtrTypeBase>(inst->getFullType());
+ auto resultType = as<IRPtrTypeBase>(inst->getDataType());
SLANG_ASSERT(resultType);
if(const auto basePtrType = as<IRPtrTypeBase>(base->getDataType()))