diff options
Diffstat (limited to 'flang/lib/Lower/IntrinsicCall.cpp')
-rw-r--r-- | flang/lib/Lower/IntrinsicCall.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/flang/lib/Lower/IntrinsicCall.cpp b/flang/lib/Lower/IntrinsicCall.cpp index 883d129..65bb310 100644 --- a/flang/lib/Lower/IntrinsicCall.cpp +++ b/flang/lib/Lower/IntrinsicCall.cpp @@ -4676,8 +4676,7 @@ IntrinsicLibrary::genLbound(mlir::Type resultType, mlir::Value dim = fir::getBase(args[1]); // If it is a compile time constant, skip the runtime call. - if (llvm::Optional<std::int64_t> cstDim = - fir::factory::getIntIfConstant(dim)) { + if (std::optional<std::int64_t> cstDim = fir::getIntIfConstant(dim)) { mlir::Value one = builder.createIntegerConstant(loc, resultType, 1); mlir::Value zero = builder.createIntegerConstant(loc, indexType, 0); mlir::Value lb = computeLBOUND(builder, loc, array, *cstDim - 1, zero, one); |