[flang] Fix bug determining alternate return
authorTim Keith <tkeith@nvidia.com>
Thu, 2 Jul 2020 19:24:34 +0000 (12:24 -0700)
committerTim Keith <tkeith@nvidia.com>
Thu, 2 Jul 2020 19:24:35 +0000 (12:24 -0700)
commit70f2bcc197ebc8d1c77c5efd5b822a9c9ccdccc4
treef881c425d4f6f8c9926389c368ac6976cc4d1355
parentfcf4d5e4499a391dff42ea1a096f146db44147b6
[flang] Fix bug determining alternate return

The arguments have been moved out of the analyzer so we can't get the
expected number there. Instead use the argument count from the newly
built callee.

Differential Revision: https://reviews.llvm.org/D83063
flang/lib/Semantics/expression.cpp