From: peter klausler Date: Thu, 30 May 2019 22:26:54 +0000 (-0700) Subject: [flang] Address review comment X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=535484e2cc0201f69cac04477b8ddc3571106f29;p=platform%2Fupstream%2Fllvm.git [flang] Address review comment Original-commit: flang-compiler/f18@17be1f6a7db3aff8453e0cf4e8ec982122b08142 Reviewed-on: https://github.com/flang-compiler/f18/pull/472 Tree-same-pre-rewrite: false --- diff --git a/flang/lib/evaluate/call.cc b/flang/lib/evaluate/call.cc index 1e7dd1a..9b3db13 100644 --- a/flang/lib/evaluate/call.cc +++ b/flang/lib/evaluate/call.cc @@ -42,7 +42,7 @@ ActualArgument &ActualArgument::operator=(Expr &&expr) { } std::optional ActualArgument::GetType() const { - if (const auto *expr{UnwrapExpr()}) { + if (const Expr *expr{UnwrapExpr()}) { return expr->GetType(); } else { return std::nullopt; @@ -50,7 +50,7 @@ std::optional ActualArgument::GetType() const { } int ActualArgument::Rank() const { - if (const auto *expr{UnwrapExpr()}) { + if (const Expr *expr{UnwrapExpr()}) { return expr->Rank(); } else { return std::get(u_).Rank();