summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-layout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-layout.cpp')
-rw-r--r--source/slang/slang-ir-layout.cpp11
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(