diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-08-29 00:41:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-28 21:41:33 -0700 |
| commit | 0da1e6940d449fcdee97bf0b814750fca8f1a504 (patch) | |
| tree | b32e15dbc7529d0e5c1c15fd8c8de53bf4398a7a /source/slang/slang-ir-lower-l-value-cast.cpp | |
| parent | c787c4b82ba76f87069911f203eb192060b5264f (diff) | |
Fix cast, needs to be PtrTypeBase rather than PtrType such that InOut/Out work. (#3158)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-ir-lower-l-value-cast.cpp')
| -rw-r--r-- | source/slang/slang-ir-lower-l-value-cast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ir-lower-l-value-cast.cpp b/source/slang/slang-ir-lower-l-value-cast.cpp index aca58cef3..4548c5156 100644 --- a/source/slang/slang-ir-lower-l-value-cast.cpp +++ b/source/slang/slang-ir-lower-l-value-cast.cpp @@ -56,8 +56,8 @@ struct LValueCastLoweringContext /// Only some targets can allow such conversions bool _canReinterpretCast(IRType* a, IRType* b) { - auto ptrA = as<IRPtrType>(a); - auto ptrB = as<IRPtrType>(b); + auto ptrA = as<IRPtrTypeBase>(a); + auto ptrB = as<IRPtrTypeBase>(b); // They must both be pointers... SLANG_ASSERT(ptrA && ptrB); |
