[flang-commits] [PATCH] D109813: [flang] GET_COMMAND_ARGUMENT(VALUE) runtime implementation
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Mon Sep 27 11:04:42 PDT 2021
klausler added inline comments.
================
Comment at: flang/runtime/command.cpp:60
+ if (n < 0 || n >= executionEnvironment.argc) {
+ if (IsValidCharDescriptor(value)) {
+ FillWithSpaces(value);
----------------
rovka wrote:
> We're silently ignoring 'value' if it's not allocated or not the right type - should we have an assert instead if it doesn't look the way we expect?
The `value` argument should be a reference, not a pointer, to a descriptor here (and in your IsValidCharDescriptor() utility above). It is not optional if ArgumentValue() is actually being called.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109813/new/
https://reviews.llvm.org/D109813
More information about the flang-commits
mailing list