diff options
Diffstat (limited to 'mlir/lib/IR/Function.cpp')
| -rw-r--r-- | mlir/lib/IR/Function.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/IR/Function.cpp b/mlir/lib/IR/Function.cpp index e5e854260f3..b51c77f34c2 100644 --- a/mlir/lib/IR/Function.cpp +++ b/mlir/lib/IR/Function.cpp @@ -40,10 +40,10 @@ FuncOp FuncOp::create(Location location, StringRef name, FunctionType type, OperationState state(location, "func"); Builder builder(location->getContext()); FuncOp::build(&builder, state, name, type, attrs); - return llvm::cast<FuncOp>(Operation::create(state)); + return cast<FuncOp>(Operation::create(state)); } FuncOp FuncOp::create(Location location, StringRef name, FunctionType type, - llvm::iterator_range<dialect_attr_iterator> attrs) { + iterator_range<dialect_attr_iterator> attrs) { SmallVector<NamedAttribute, 8> attrRef(attrs); return create(location, name, type, llvm::makeArrayRef(attrRef)); } @@ -204,7 +204,7 @@ FuncOp FuncOp::clone(BlockAndValueMapping &mapper) { } // Create the new function. - FuncOp newFunc = llvm::cast<FuncOp>(getOperation()->cloneWithoutRegions()); + FuncOp newFunc = cast<FuncOp>(getOperation()->cloneWithoutRegions()); newFunc.setType(newType); /// Set the argument attributes for arguments that aren't being replaced. |

