From 535484e2cc0201f69cac04477b8ddc3571106f29 Mon Sep 17 00:00:00 2001 From: peter klausler Date: Thu, 30 May 2019 15:26:54 -0700 Subject: [PATCH] [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 --- flang/lib/evaluate/call.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.7.4