[flang] Review comments

Original-commit: flang-compiler/f18@fa5daf35ba
Reviewed-on: https://github.com/flang-compiler/f18/pull/199
This commit is contained in:
Eric Schweitz 2018-10-02 09:29:53 -07:00
parent 8dfb172b1a
commit c105c9432a
1 changed files with 6 additions and 6 deletions

View File

@ -84,11 +84,11 @@ private:
Block::iterator ConvertLabelDoToStructuredDo(const Block::iterator &iter) {
currentIter_ = iter;
ExecutionPartConstruct &executionPartConstruct{*iter};
if (auto *executableConstruct =
std::get_if<ExecutableConstruct>(&executionPartConstruct.u)) {
if (auto *labelDoLoop =
if (auto *executableConstruct{
std::get_if<ExecutableConstruct>(&executionPartConstruct.u)}) {
if (auto *labelDoLoop{
std::get_if<Statement<common::Indirection<LabelDoStmt>>>(
&executableConstruct->u)) {
&executableConstruct->u)}) {
labelDoIters_.push_back(iter);
labels_.push_back(std::get<Label>(labelDoLoop->statement->t));
} else if (!labels_.empty()) {
@ -100,8 +100,8 @@ private:
std::vector<Block::iterator> labelDoIters_;
std::vector<Label> labels_;
Block::iterator currentIter_;
Block *currentList_;
Block::iterator currentIter_; ///< cursor for current ExecutionPartConstruct
Block *currentList_; ///< current ExectionPartConstruct list being traversed
};
void CanonicalizeDo(Program &program) {