From c9d89a40775a055873adf82cfb0ee1cb6bdcb93c Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 25 Jul 2024 15:00:14 -0700 Subject: Overhaul IR lowering of pointer types. (#4710) * Overhaul IR lowering of pointer types. * Propagate address space in IRBuilder. * Fixup. * Fix. * Fix. * Change how Ptr type is printed to text. * Fix. --- source/slang/slang-ir-explicit-global-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-explicit-global-context.cpp') diff --git a/source/slang/slang-ir-explicit-global-context.cpp b/source/slang/slang-ir-explicit-global-context.cpp index 9d3f09712..56fd62883 100644 --- a/source/slang/slang-ir-explicit-global-context.cpp +++ b/source/slang/slang-ir-explicit-global-context.cpp @@ -258,7 +258,7 @@ struct IntroduceExplicitGlobalContextPass if (kind == GlobalObjectKind::GlobalVar) { auto ptrType = as(type); - if (ptrType->getAddressSpace() == (IRIntegerValue)AddressSpace::GroupShared) + if (ptrType->getAddressSpace() == AddressSpace::GroupShared) { fieldDataType = ptrType; needDereference = true; -- cgit v1.2.3