File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2117,12 +2117,8 @@ static void createBodyOfOp(
2117
2117
for (const Fortran::semantics::Symbol *arg : args)
2118
2118
loopVarTypeSize = std::max (loopVarTypeSize, arg->GetUltimate ().size ());
2119
2119
mlir::Type loopVarType = getLoopVarType (converter, loopVarTypeSize);
2120
- llvm::SmallVector<mlir::Type> tiv;
2121
- llvm::SmallVector<mlir::Location> locs;
2122
- for (int i = 0 ; i < (int )args.size (); i++) {
2123
- tiv.push_back (loopVarType);
2124
- locs.push_back (loc);
2125
- }
2120
+ llvm::SmallVector<mlir::Type> tiv (args.size (), loopVarType);
2121
+ llvm::SmallVector<mlir::Location> locs (args.size (), loc);
2126
2122
firOpBuilder.createBlock (&op.getRegion (), {}, tiv, locs);
2127
2123
int argIndex = 0 ;
2128
2124
// The argument is not currently in memory, so make a temporary for the
You can’t perform that action at this time.
0 commit comments