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-specialize-function-call.cpp | |
| parent | 4c4826d47eeef4675daae4ae53ff76f4d5ebd84a (diff) | |
Remove `SharedIRBuilder`. (#2657)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-specialize-function-call.cpp')
| -rw-r--r-- | source/slang/slang-ir-specialize-function-call.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/slang/slang-ir-specialize-function-call.cpp b/source/slang/slang-ir-specialize-function-call.cpp index ecbdf9008..894d46cce 100644 --- a/source/slang/slang-ir-specialize-function-call.cpp +++ b/source/slang/slang-ir-specialize-function-call.cpp @@ -89,11 +89,6 @@ struct FunctionParameterSpecializationContext // List<IRCall*> workList; - // Because we may need to generate specialized functions - // and generate new calls to those functions, we'll - // need some IR building state to get our work done. - // - SharedIRBuilder sharedBuilderStorage; IRBuilder builderStorage; IRBuilder* getBuilder() { return &builderStorage; } @@ -104,8 +99,7 @@ struct FunctionParameterSpecializationContext { // We will start by initializing our IR building state. // - sharedBuilderStorage.init(module); - builderStorage.init(sharedBuilderStorage); + builderStorage = IRBuilder(module); // Next we will populate our initial work list by // recursively finding every single call site in the module. @@ -798,7 +792,7 @@ struct FunctionParameterSpecializationContext // cloneInstDecorationsAndChildren( &cloneEnv, - builder->getSharedBuilder(), + builder->getModule(), oldFunc, newFunc); |
