diff options
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 2 |
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())) |
