Changeset d60780c for src/AST/Expr.hpp


Ignore:
Timestamp:
Jun 13, 2019, 8:28:13 AM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d76f32c, dc5072f
Parents:
d7a02ae (diff), 21300d7 (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
  • TabularUnified src/AST/Expr.hpp

    rd7a02ae rd60780c  
    3939struct ParamEntry {
    4040        UniqueId decl;
     41        ptr<Decl> declptr;
    4142        ptr<Type> actualType;
    4243        ptr<Type> formalType;
    4344        ptr<Expr> expr;
    4445
    45         ParamEntry() : decl( 0 ), actualType( nullptr ), formalType( nullptr ), expr( nullptr ) {}
    46         ParamEntry( UniqueId id, Type* actual, Type* formal, Expr* e )
    47         : decl( id ), actualType( actual ), formalType( formal ), expr( e ) {}
     46        ParamEntry() : decl( 0 ), declptr( nullptr ), actualType( nullptr ), formalType( nullptr ), expr( nullptr ) {}
     47        ParamEntry( UniqueId id, Decl * declptr, Type* actual, Type* formal, Expr* e )
     48        : decl( id ), declptr( declptr ), actualType( actual ), formalType( formal ), expr( e ) {}
    4849};
    4950
     
    137138                }
    138139
    139                 /// splices other InferUnion into this one. Will fail if one union is in `Slots` mode 
     140                /// splices other InferUnion into this one. Will fail if one union is in `Slots` mode
    140141                /// and the other is in `Params`.
    141142                void splice( InferUnion && o ) {
     
    145146
    146147                        if ( mode == Slots ){
    147                                 data.resnSlots.insert( 
     148                                data.resnSlots.insert(
    148149                                        data.resnSlots.end(), o.data.resnSlots.begin(), o.data.resnSlots.end() );
    149150                        } else if ( mode == Params ) {
Note: See TracChangeset for help on using the changeset viewer.