diff options
| author | Yong He <yonghe@outlook.com> | 2024-10-09 07:35:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-09 22:35:10 +0800 |
| commit | ac6f04c15995061ebe8e0ddf62ecf7eb979afb65 (patch) | |
| tree | f16f0f01f1f8d0e73ecd774a22f87576f440f8e8 /source/slang/slang-ir.cpp | |
| parent | bea1394ad35680940a0b69b9c67efc43764cc194 (diff) | |
Fix spirv lowering logic around pointer to unsized array. (#5243)
* Fix spirv lowering logic around pointer to unsized array.
* Fix.
---------
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index f0e7773c6..f190b3a11 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -5464,6 +5464,12 @@ namespace Slang return inst; } + IRInst* IRBuilder::emitGetOffsetPtr(IRInst* base, IRInst* offset) + { + IRInst* args[] = { base, offset }; + return emitIntrinsicInst(base->getDataType(), kIROp_GetOffsetPtr, 2, args); + } + IRInst* IRBuilder::emitGetAddress( IRType* type, IRInst* value) |
