[flang] Fix a couple other spots clang-format missed

Original-commit: flang-compiler/f18@1a4b12e1b2
Reviewed-on: https://github.com/flang-compiler/f18/pull/170
Tree-same-pre-rewrite: false
This commit is contained in:
Eric Schweitz 2018-09-06 10:38:52 -07:00 committed by GitHub
parent 51a48e542a
commit facd02405f
1 changed files with 1 additions and 5 deletions

View File

@ -401,14 +401,12 @@ private:
CheckName(a);
popConstructNameIfPresent(a);
}
template<typename A> void popConstructNameIfPresent(const A &a) {
const auto &optionalName{std::get<0>(std::get<0>(a.t).statement.t)};
if (optionalName.has_value()) {
constructNames_.pop_back();
}
}
void popConstructNameIfPresent(const parser::BlockConstruct &blockConstruct) {
const auto &optionalName{
std::get<parser::Statement<parser::BlockStmt>>(blockConstruct.t)
@ -532,9 +530,7 @@ private:
std::get<parser::Statement<parser::ElseStmt>>(
std::get<std::optional<parser::IfConstruct::ElseBlock>>(
ifConstruct.t)
->t
)
->t)
.statement.v,
constructName)) {
errorHandler_.Say(currentPosition_,