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:
432ffe8
)
[flang] Work around clang-format issue by using "auto" where type is obvious.
author
peter klausler
<pklausler@nvidia.com>
Mon, 2 Apr 2018 17:59:42 +0000
(10:59 -0700)
committer
peter klausler
<pklausler@nvidia.com>
Mon, 2 Apr 2018 18:01:31 +0000
(11:01 -0700)
Original-commit: flang-compiler/f18@
7499bccaa938547d3af29c7b859f1fede2e718be
Reviewed-on: https://github.com/flang-compiler/f18/pull/38
Tree-same-pre-rewrite: false
flang/lib/parser/parse-tree.cc
patch
|
blob
|
history
diff --git
a/flang/lib/parser/parse-tree.cc
b/flang/lib/parser/parse-tree.cc
index
ebd9425
..
ee402fe
100644
(file)
--- a/
flang/lib/parser/parse-tree.cc
+++ b/
flang/lib/parser/parse-tree.cc
@@
-30,7
+30,7
@@
ProcedureDesignator Designator::ConvertToProcedureDesignator() {
visitors{
[](ObjectName &n) -> ProcedureDesignator { return {std::move(n)}; },
[](DataReference &dr) -> ProcedureDesignator {
- if (
Name * n{std::get_if<Name>(&dr.u)}
) {
+ if (
auto n = std::get_if<Name>(&dr.u)
) {
return {std::move(*n)};
}
StructureComponent &sc{