summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-restructure-scoping.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-restructure-scoping.cpp')
-rw-r--r--source/slang/slang-ir-restructure-scoping.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/slang/slang-ir-restructure-scoping.cpp b/source/slang/slang-ir-restructure-scoping.cpp
index 0b8e37d31..0535483ec 100644
--- a/source/slang/slang-ir-restructure-scoping.cpp
+++ b/source/slang/slang-ir-restructure-scoping.cpp
@@ -254,12 +254,9 @@ static void fixValueScopingForInst(
//
IRModule* module = regionTree->irCode->getModule();
- SharedIRBuilder sharedBuilder;
- sharedBuilder.session = module->session;
- sharedBuilder.module = module;
+ SharedIRBuilder sharedBuilder(module);
- IRBuilder builder;
- builder.sharedBuilder = &sharedBuilder;
+ IRBuilder builder(sharedBuilder);
// Because we will be changing some of the uses of `def`
// to use other values while we iterate the list, we