diff options
Diffstat (limited to 'flang/lib/Lower/ConvertConstant.cpp')
| -rw-r--r-- | flang/lib/Lower/ConvertConstant.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/flang/lib/Lower/ConvertConstant.cpp b/flang/lib/Lower/ConvertConstant.cpp index 1051d50ce8a9..b8ab5d09e3e0 100644 --- a/flang/lib/Lower/ConvertConstant.cpp +++ b/flang/lib/Lower/ConvertConstant.cpp @@ -303,7 +303,7 @@ createStringLitOp(fir::FirOpBuilder &builder, mlir::Location loc, mlir::NamedAttribute sizeAttr(sizeTag, builder.getI64IntegerAttr(len)); llvm::SmallVector<mlir::NamedAttribute> attrs = {dataAttr, sizeAttr}; return builder.create<fir::StringLitOp>( - loc, llvm::ArrayRef<mlir::Type>{type}, std::nullopt, attrs); + loc, llvm::ArrayRef<mlir::Type>{type}, mlir::ValueRange{}, attrs); } } @@ -374,8 +374,8 @@ static mlir::Value genStructureComponentInit( "allocatable component value that is not NULL"); } else { // Handle NULL() initialization - mlir::Value componentValue{fir::factory::createUnallocatedBox( - builder, loc, componentTy, std::nullopt)}; + mlir::Value componentValue{ + fir::factory::createUnallocatedBox(builder, loc, componentTy, {})}; componentValue = builder.createConvert(loc, componentTy, componentValue); return builder.create<fir::InsertValueOp>( |
