diff options
| author | River Riddle <riverriddle@google.com> | 2019-10-17 20:08:01 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-17 20:08:34 -0700 |
| commit | 2acc220f17bacbf933d024a68385a909b44352fd (patch) | |
| tree | cf0aaf3ce4fc11e68185abd6331fa2bc5e31a596 /mlir/lib/IR/FunctionSupport.cpp | |
| parent | 575405f4d6762830c1c4520569de4e4ed3c8eed5 (diff) | |
| download | bcm5719-llvm-2acc220f17bacbf933d024a68385a909b44352fd.tar.gz bcm5719-llvm-2acc220f17bacbf933d024a68385a909b44352fd.zip | |
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
Diffstat (limited to 'mlir/lib/IR/FunctionSupport.cpp')
| -rw-r--r-- | mlir/lib/IR/FunctionSupport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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" |

