Ignore:
Timestamp:
Nov 22, 2015, 3:17:10 PM (4 years ago)
Author:
nmedfort
Message:

More work on n-ary operations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/ps_if.cpp

    r4876 r4878  
    88: Statement(ClassTypeId::If, {expr}, nullptr)
    99, mBody(body)
    10 , mDefined(definedVars.begin(), definedVars.end(), reinterpret_cast<DefinedAllocator &>(mAllocator))
    11 {
     10, mDefined(definedVars.begin(), definedVars.end(), reinterpret_cast<DefinedAllocator &>(mAllocator)) {
    1211    // Conceptually, having a defined var X is identical to having:
    1312    //
     
    2120    // of it.
    2221
     22    mBody->setParent(getParent());
    2323    for (Assign * def : mDefined) {
    2424        def->addUser(this);
     
    3030: Statement(ClassTypeId::If, {expr}, nullptr)
    3131, mBody(body)
    32 , mDefined(definedVars.begin(), definedVars.end(), reinterpret_cast<DefinedAllocator &>(mAllocator))
    33 {
     32, mDefined(definedVars.begin(), definedVars.end(), reinterpret_cast<DefinedAllocator &>(mAllocator)) {
     33    mBody->setParent(getParent());
    3434    for (Assign * def : mDefined) {
    3535        def->addUser(this);
Note: See TracChangeset for help on using the changeset viewer.