summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-bind-existentials.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-bind-existentials.cpp')
-rw-r--r--source/slang/slang-ir-bind-existentials.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/slang/slang-ir-bind-existentials.cpp b/source/slang/slang-ir-bind-existentials.cpp
index 2ceda3c06..7af93037b 100644
--- a/source/slang/slang-ir-bind-existentials.cpp
+++ b/source/slang/slang-ir-bind-existentials.cpp
@@ -275,12 +275,8 @@ struct BindExistentialSlots
auto fullType = inst->getFullType();
- SharedIRBuilder sharedBuilder;
- sharedBuilder.session = module->getSession();
- sharedBuilder.module = module;
-
- IRBuilder builder;
- builder.sharedBuilder = &sharedBuilder;
+ SharedIRBuilder sharedBuilder(module);
+ IRBuilder builder(sharedBuilder);
// Every argument that is filling an existential
// type param/slot comprises both a type and