[flang] Address review comment
authorpeter klausler <pklausler@nvidia.com>
Thu, 30 May 2019 22:26:54 +0000 (15:26 -0700)
committerpeter klausler <pklausler@nvidia.com>
Thu, 30 May 2019 22:26:54 +0000 (15:26 -0700)
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

index 1e7dd1a..9b3db13 100644 (file)
@@ -42,7 +42,7 @@ ActualArgument &ActualArgument::operator=(Expr<SomeType> &&expr) {
 }
 
 std::optional<DynamicType> ActualArgument::GetType() const {
-  if (const auto *expr{UnwrapExpr()}) {
+  if (const Expr<SomeType> *expr{UnwrapExpr()}) {
     return expr->GetType();
   } else {
     return std::nullopt;
@@ -50,7 +50,7 @@ std::optional<DynamicType> ActualArgument::GetType() const {
 }
 
 int ActualArgument::Rank() const {
-  if (const auto *expr{UnwrapExpr()}) {
+  if (const Expr<SomeType> *expr{UnwrapExpr()}) {
     return expr->Rank();
   } else {
     return std::get<AssumedType>(u_).Rank();