We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a9783 commit 636319aCopy full SHA for 636319a
flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
@@ -359,10 +359,10 @@ struct GetLengthOpConversion
359
fir::FirOpBuilder builder(rewriter, getLength.getOperation());
360
hlfir::Entity bufferizedExpr = getBufferizedExprStorage(adaptor.getExpr());
361
mlir::Value length = hlfir::genCharLength(loc, builder, bufferizedExpr);
362
- length = builder.createConvert(loc, builder.getIndexType(), length);
363
if (!length)
364
return rewriter.notifyMatchFailure(
365
getLength, "could not deduce length from GetLengthOp operand");
+ length = builder.createConvert(loc, builder.getIndexType(), length);
366
rewriter.replaceOp(getLength, length);
367
return mlir::success();
368
}
0 commit comments