projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3b23e9
)
[flang] Address review comment
author
peter klausler
<pklausler@nvidia.com>
Thu, 30 May 2019 22:26:54 +0000
(15:26 -0700)
committer
peter 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
patch
|
blob
|
history
diff --git
a/flang/lib/evaluate/call.cc
b/flang/lib/evaluate/call.cc
index
1e7dd1a
..
9b3db13
100644
(file)
--- a/
flang/lib/evaluate/call.cc
+++ b/
flang/lib/evaluate/call.cc
@@
-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();