diff options
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 1e6f27e7f..62c667de1 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -6824,7 +6824,7 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex getStructFieldId(baseStructType, as<IRStructKey>(fieldAddress->getField())), builder.getIntType()); SLANG_ASSERT(as<IRPtrTypeBase>(fieldAddress->getFullType())); - return emitOpAccessChain( + return emitOpInBoundsAccessChain( parent, fieldAddress, fieldAddress->getFullType(), @@ -6869,7 +6869,6 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex // We might replace resultType with a different storage class equivalent auto resultType = as<IRPtrTypeBase>(inst->getDataType()); SLANG_ASSERT(resultType); - if (const auto basePtrType = as<IRPtrTypeBase>(base->getDataType())) { // If the base pointer has a specific address space and the |
