Changeset 00675a1 for src/ControlStruct


Ignore:
Timestamp:
May 10, 2022, 12:25:05 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
8faa6612
Parents:
3b80db8 (diff), 7edd5c1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/MultiLevelExit.cpp

    r3b80db8 r00675a1  
    594594                }
    595595
     596                // check if loop node and if so add else clause if it exists
     597                const WhileDoStmt * whilePtr = dynamic_cast<const WhileDoStmt *>(kid.get());
     598                if ( whilePtr && whilePtr->else_) ret.push_back(whilePtr->else_);
     599                const ForStmt * forPtr = dynamic_cast<const ForStmt *>(kid.get());
     600                if ( forPtr && forPtr->else_) ret.push_back(forPtr->else_);
     601
    596602                if ( ! break_label.empty() ) {
    597603                        ret.push_back( labelledNullStmt( ret.back()->location, break_label ) );
Note: See TracChangeset for help on using the changeset viewer.