From 245466d89cfe54b78da486f06d470bc6daaf4625 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 16 Feb 2023 16:44:04 -0800 Subject: Remove `SharedIRBuilder`. (#2657) Co-authored-by: Yong He --- source/slang/slang-ir-union.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/slang/slang-ir-union.cpp') diff --git a/source/slang/slang-ir-union.cpp b/source/slang/slang-ir-union.cpp index 7a7271f23..3d0ed1fe8 100644 --- a/source/slang/slang-ir-union.cpp +++ b/source/slang/slang-ir-union.cpp @@ -20,7 +20,6 @@ struct DesugarUnionTypesContext // state that we will initialize once and then use throughout the pass. // IRModule* module; - SharedIRBuilder sharedBuilderStorage; IRBuilder builderStorage; IRBuilder* getBuilder() { return &builderStorage; } @@ -39,8 +38,7 @@ struct DesugarUnionTypesContext { // We start by initializing our IR building state. // - sharedBuilderStorage.init(module); - builderStorage.init(sharedBuilderStorage); + builderStorage = IRBuilder(module); // Next, we will search for any instruction that create or use // union types, and process them accordingingly (usually by -- cgit v1.2.3