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-layout.cpp | |
| parent | 4c4826d47eeef4675daae4ae53ff76f4d5ebd84a (diff) | |
Remove `SharedIRBuilder`. (#2657)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-layout.cpp')
| -rw-r--r-- | source/slang/slang-ir-layout.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/slang/slang-ir-layout.cpp b/source/slang/slang-ir-layout.cpp index 0e4ccc1fe..ab24d3354 100644 --- a/source/slang/slang-ir-layout.cpp +++ b/source/slang/slang-ir-layout.cpp @@ -155,9 +155,7 @@ static Result _calcNaturalSizeAndAlignment( // cache the field offset on the IR field // instruction. // - SharedIRBuilder sharedBuilder(module); - - IRBuilder builder(sharedBuilder); + IRBuilder builder(module); auto intType = builder.getIntType(); builder.addDecoration( @@ -247,8 +245,7 @@ static Result _calcNaturalSizeAndAlignment( auto matType = cast<IRMatrixType>(type); auto rowCount = getIntegerValueFromInst(matType->getRowCount()); auto colCount = getIntegerValueFromInst(matType->getColumnCount()); - SharedIRBuilder sharedBuilder(type->getModule()); - IRBuilder builder(sharedBuilder); + IRBuilder builder(type->getModule()); return _calcNaturalArraySizeAndAlignment( target, matType->getElementType(), @@ -307,9 +304,7 @@ Result getNaturalSizeAndAlignment(TargetRequest* target, IRType* type, IRSizeAnd if( auto module = type->getModule() ) { - SharedIRBuilder sharedBuilder(module); - - IRBuilder builder(sharedBuilder); + IRBuilder builder(module); auto intType = builder.getIntType(); builder.addDecoration( |
