[flang][msvc] Add explicit function template argument to applyLamda. NFC.

Like in D87961, msvc has difficulties deducing the template argument. The error message is:
```
expr-parsers.cpp(383): error C2672: 'applyLambda': no matching overloaded function found
```
Explicitly pass the first template argument to help it.

This patch is part of the series to make flang compilable with MS Visual Studio <http://lists.llvm.org/pipermail/flang-dev/2020-July/000448.html>.

Reviewed By: DavidTruby

Differential Revision: https://reviews.llvm.org/D88001
This commit is contained in:
Michael Kruse 2020-09-22 14:19:40 -05:00
parent 2bc589bbb8
commit 97ca41e1dd

View File

@ -379,8 +379,8 @@ template <> std::optional<Expr> Parser<Expr>::Parse(ParseState &state) {
return Expr{Expr::DefinedBinary(
std::move(op), std::move(result).value(), std::move(right))};
}};
auto more{
attempt(sourced(applyLambda(defBinOp, definedOpName, level5Expr)))};
auto more{attempt(
sourced(applyLambda<Expr>(defBinOp, definedOpName, level5Expr)))};
while (std::optional<Expr> next{more.Parse(state)}) {
result = std::move(next);
result->source.ExtendToCover(source);