[flang-commits] [flang] [Flang] Add a HLFIR Minloc intrinsic (PR #74436)
via flang-commits
flang-commits at lists.llvm.org
Tue Dec 5 02:04:33 PST 2023
================
@@ -206,6 +219,8 @@ llvm::SmallVector<mlir::Value> HlfirTransformationalIntrinsic::getOperandVector(
else if (!argRules.handleDynamicOptional &&
argRules.lowerAs != fir::LowerIntrinsicArgAs::Inquired)
valArg = hlfir::derefPointersAndAllocatables(loc, builder, actual);
+ else if (argRules.lowerAs == fir::LowerIntrinsicArgAs::Value)
----------------
jeanPerier wrote:
Optional value need to use something like genOptionalValue from ConvertCall.cpp, assuming that the fallback value is zero/false.
https://github.com/llvm/llvm-project/pull/74436
More information about the flang-commits
mailing list