diff options
Diffstat (limited to 'mlir/lib/IR/BasicBlock.cpp')
| -rw-r--r-- | mlir/lib/IR/BasicBlock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/IR/BasicBlock.cpp b/mlir/lib/IR/BasicBlock.cpp index bb8ac75d91a..29a5ce12e4a 100644 --- a/mlir/lib/IR/BasicBlock.cpp +++ b/mlir/lib/IR/BasicBlock.cpp @@ -33,18 +33,18 @@ BasicBlock::~BasicBlock() { // Argument list management. //===----------------------------------------------------------------------===// -BBArgument *BasicBlock::addArgument(Type *type) { +BBArgument *BasicBlock::addArgument(Type type) { auto *arg = new BBArgument(type, this); arguments.push_back(arg); return arg; } /// Add one argument to the argument list for each type specified in the list. -auto BasicBlock::addArguments(ArrayRef<Type *> types) +auto BasicBlock::addArguments(ArrayRef<Type> types) -> llvm::iterator_range<args_iterator> { arguments.reserve(arguments.size() + types.size()); auto initialSize = arguments.size(); - for (auto *type : types) { + for (auto type : types) { addArgument(type); } return {arguments.data() + initialSize, arguments.data() + arguments.size()}; |

