diff options
| author | Yong He <yonghe@outlook.com> | 2023-02-16 16:44:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-16 16:44:04 -0800 |
| commit | 245466d89cfe54b78da486f06d470bc6daaf4625 (patch) | |
| tree | 522e0af1a9d2756182e143cdc85031ea1bbc2aa0 /source/slang/slang-ir-union.cpp | |
| parent | 4c4826d47eeef4675daae4ae53ff76f4d5ebd84a (diff) | |
Remove `SharedIRBuilder`. (#2657)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-union.cpp')
| -rw-r--r-- | source/slang/slang-ir-union.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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 |
