[PATCH] D98430: [flang] Handle type-bound procedures with alternate returns
Tim Keith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 11 09:08:33 PST 2021
tskeith accepted this revision.
tskeith added inline comments.
This revision is now accepted and ready to land.
================
Comment at: flang/lib/Semantics/check-declarations.cpp:1363-1370
+ if (argSym) {
+ passName = dummyArgs[0]->name();
+ } else {
+ messages_.Say(interface->name(),
+ "Cannot use an alternate return as the passed-object dummy "
+ "argument"_err_en_US);
+ return;
----------------
It's a little more readable to follow the pattern of: if (error condition) { report error; return; }
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98430/new/
https://reviews.llvm.org/D98430
More information about the llvm-commits
mailing list