summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-generics-lowering-context.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-08-22 14:17:56 -0700
committerGitHub <noreply@github.com>2022-08-22 14:17:56 -0700
commit4bd3e6e02324f913e8927fe69d32c0aafe9fc831 (patch)
tree1f6ff8449feb49d00dee2bc527f7dc531a07c196 /source/slang/slang-ir-generics-lowering-context.cpp
parent393185196ed65a9eeaf9502edbf3dcce87337d81 (diff)
Make Optional<PointerType> lower to PointerType instead of a struct. (#2373)
Diffstat (limited to 'source/slang/slang-ir-generics-lowering-context.cpp')
-rw-r--r--source/slang/slang-ir-generics-lowering-context.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/source/slang/slang-ir-generics-lowering-context.cpp b/source/slang/slang-ir-generics-lowering-context.cpp
index 48178340d..0ed7d75d7 100644
--- a/source/slang/slang-ir-generics-lowering-context.cpp
+++ b/source/slang/slang-ir-generics-lowering-context.cpp
@@ -3,6 +3,7 @@
#include "slang-ir-generics-lowering-context.h"
#include "slang-ir-layout.h"
+#include "slang-ir-util.h"
namespace Slang
{
@@ -36,24 +37,6 @@ namespace Slang
return false;
}
- bool isComInterfaceType(IRType* type)
- {
- if (!type) return false;
- if (type->findDecoration<IRComInterfaceDecoration>() ||
- type->getOp() == kIROp_ComPtrType)
- {
- return true;
- }
-
- if (auto ptrType = as<IRNativePtrType>(type))
- {
- auto valueType = ptrType->getValueType();
- return valueType->findDecoration<IRComInterfaceDecoration>() != nullptr;
- }
-
- return false;
- }
-
bool isTypeValue(IRInst* typeInst)
{
if (typeInst)