summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/slang/slang-ir-lower-l-value-cast.cpp4
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);