summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-lower-result-type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-lower-result-type.cpp')
-rw-r--r--source/slang/slang-ir-lower-result-type.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/slang/slang-ir-lower-result-type.cpp b/source/slang/slang-ir-lower-result-type.cpp
index c8d156cec..a10a9d343 100644
--- a/source/slang/slang-ir-lower-result-type.cpp
+++ b/source/slang/slang-ir-lower-result-type.cpp
@@ -11,8 +11,12 @@ namespace Slang
IRModule* module;
DiagnosticSink* sink;
- List<IRInst*> workList;
- HashSet<IRInst*> workListSet;
+ InstWorkList workList;
+ InstHashSet workListSet;
+
+ ResultTypeLoweringContext(IRModule* inModule)
+ :module(inModule), workList(inModule), workListSet(inModule)
+ {}
struct LoweredResultTypeInfo : public RefObject
{
@@ -296,8 +300,7 @@ namespace Slang
void lowerResultType(IRModule* module, DiagnosticSink* sink)
{
- ResultTypeLoweringContext context;
- context.module = module;
+ ResultTypeLoweringContext context(module);
context.sink = sink;
context.processModule();
}