This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
if (entity.isVariable()) {
if (entity.isScalar() && !entity.hasLengthParameters() &&
!hlfir::isBoxAddressOrValueType(entity.getType()))
- return {fir::ExtendedValue{entity.getBase()}, llvm::None};
+ return {fir::ExtendedValue{entity.getBase()}, std::nullopt};
TODO(loc, "HLFIR variable to fir::ExtendedValue without a "
"FortranVariableOpInterface");
}