forked from OSchip/llvm-project
[mlir] NFC: use ValueRange for BlockArgument in ConvertStandardToLLVM
When the conversion was implemented, ValueRange did not support BlockArguments the code materialized a vector. This is no longer necessary.
This commit is contained in:
parent
461fd94f00
commit
d97d409277
|
@ -826,16 +826,11 @@ static void wrapExternalFunction(OpBuilder &builder, Location loc,
|
|||
|
||||
builder.setInsertionPointToStart(newFuncOp.addEntryBlock());
|
||||
|
||||
// Get a ValueRange containing argument types. Note that ValueRange is
|
||||
// currently not constructible from a pair of iterators pointing to
|
||||
// BlockArgument.
|
||||
// Get a ValueRange containing arguments.
|
||||
FunctionType type = funcOp.getType();
|
||||
SmallVector<Value, 8> args;
|
||||
args.reserve(type.getNumInputs());
|
||||
auto wrapperArgIters = newFuncOp.getArguments();
|
||||
SmallVector<Value, 8> wrapperArgs(wrapperArgIters.begin(),
|
||||
wrapperArgIters.end());
|
||||
ValueRange wrapperArgsRange(wrapperArgs);
|
||||
ValueRange wrapperArgsRange(newFuncOp.getArguments());
|
||||
|
||||
// Iterate over the inputs of the original function and pack values into
|
||||
// memref descriptors if the original type is a memref.
|
||||
|
|
Loading…
Reference in New Issue