From 2acc220f17bacbf933d024a68385a909b44352fd Mon Sep 17 00:00:00 2001 From: River Riddle Date: Thu, 17 Oct 2019 20:08:01 -0700 Subject: NFC: Remove trivial builder get methods. These don't add any value, and some are even more restrictive than the respective static 'get' method. PiperOrigin-RevId: 275391240 --- mlir/lib/IR/FunctionSupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mlir/lib/IR/FunctionSupport.cpp') diff --git a/mlir/lib/IR/FunctionSupport.cpp b/mlir/lib/IR/FunctionSupport.cpp index b40eebb04b2..468301e9431 100644 --- a/mlir/lib/IR/FunctionSupport.cpp +++ b/mlir/lib/IR/FunctionSupport.cpp @@ -133,7 +133,7 @@ mlir::impl::parseFunctionLikeOp(OpAsmParser &parser, OperationState &result, std::string errorMessage; if (auto type = funcTypeBuilder(builder, argTypes, results, impl::VariadicFlag(isVariadic), errorMessage)) - result.addAttribute(getTypeAttrName(), builder.getTypeAttr(type)); + result.addAttribute(getTypeAttrName(), TypeAttr::get(type)); else return parser.emitError(signatureLocation) << "failed to construct function type" -- cgit v1.2.3