Skip to content

Commit b325513

Browse files
committed
use new op builder API
1 parent 0adf900 commit b325513

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flang/lib/Lower/Bridge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4011,7 +4011,7 @@ class FirConverter : public Fortran::lower::AbstractConverter {
40114011
// POINTER/ALLOCATBLE as per F'2023 C1160.
40124012
fir::ExtendedValue newExv;
40134013
llvm::SmallVector<mlir::Value> assumeSizeExtents{
4014-
builder->create<fir::AssumedSizeExtentOp>(loc)};
4014+
fir::AssumedSizeExtentOp::create(*builer, loc)};
40154015
mlir::Value baseAddr =
40164016
hlfir::genVariableRawAddress(loc, *builder, selector);
40174017
const bool isVolatile = fir::isa_volatile_type(selector.getType());

flang/lib/Lower/ConvertVariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ static void lowerExplicitLowerBounds(
17111711
/// CFI_desc_t requirements in 18.5.3 point 5.).
17121712
static mlir::Value getAssumedSizeExtent(mlir::Location loc,
17131713
fir::FirOpBuilder &builder) {
1714-
return builder.create<fir::AssumedSizeExtentOp>(loc);
1714+
return fir::AssumedSizeExtentOp::create(builder, loc);
17151715
}
17161716

17171717
/// Lower explicit extents into \p result if this is an explicit-shape or

0 commit comments

Comments
 (0)