Use SmallVectorImpl instead of SmallVector for function parameters (NFC)

Closes tensorflow/mlir#247

PiperOrigin-RevId: 281185661
This commit is contained in:
Tian Jin 2019-11-18 16:58:32 -08:00 committed by A. Unique TensorFlower
parent 8c6a5233d5
commit d8563c0e3a
2 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ void printDimAndSymbolList(Operation::operand_iterator begin,
/// Parses dimension and symbol list and returns true if parsing failed.
ParseResult parseDimAndSymbolList(OpAsmParser &parser,
SmallVector<Value *, 4> &operands,
SmallVectorImpl<Value *> &operands,
unsigned &numDims);
llvm::raw_ostream &operator<<(llvm::raw_ostream &os, SubViewOp::Range &range);

View File

@ -212,7 +212,7 @@ void mlir::printDimAndSymbolList(Operation::operand_iterator begin,
// dimension operands parsed.
// Returns 'false' on success and 'true' on error.
ParseResult mlir::parseDimAndSymbolList(OpAsmParser &parser,
SmallVector<Value *, 4> &operands,
SmallVectorImpl<Value *> &operands,
unsigned &numDims) {
SmallVector<OpAsmParser::OperandType, 8> opInfos;
if (parser.parseOperandList(opInfos, OpAsmParser::Delimiter::Paren))