Skip to content

Commit 5d57b0b

Browse files
committed
[mlir][spirv]: Address Feedback
Use new builder APIs over builder methods. Signed-off-by: Jack Frankland <[email protected]>
1 parent fd5c33d commit 5d57b0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ createGlobalVarForEntryPointArgument(OpBuilder &builder, spirv::FuncOp funcOp,
6464
// Note that currently only sampled images are supported in the SPIR-V
6565
// lowering.
6666
if (isa<spirv::SampledImageType>(pointeeType))
67-
return builder.create<spirv::GlobalVariableOp>(
68-
funcOp.getLoc(), varType, varName, abiInfo.getDescriptorSet(),
69-
abiInfo.getBinding());
67+
return spirv::GlobalVariableOp::create(builder, funcOp.getLoc(), varType,
68+
varName, abiInfo.getDescriptorSet(),
69+
abiInfo.getBinding());
7070

7171
auto varPointeeType = cast<spirv::StructType>(pointeeType);
7272

0 commit comments

Comments
 (0)