Changeset f8d05ee for src/AST/Type.cpp


Ignore:
Timestamp:
Aug 12, 2020, 12:19:39 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
74807be, fb0ae06
Parents:
7f66cec (diff), 7ff3e522 (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 'new-ast' of plg.uwaterloo.ca:software/cfa/cfa-cc into new-ast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Type.cpp

    r7f66cec rf8d05ee  
    9494// --- ParameterizedType
    9595
    96 void ParameterizedType::initWithSub( 
    97         const ParameterizedType & o, Pass< ForallSubstitutor > & sub 
     96void ParameterizedType::initWithSub(
     97        const ParameterizedType & o, Pass< ForallSubstitutor > & sub
    9898) {
    99         forall = sub.pass( o.forall );
     99        forall = sub.core( o.forall );
    100100}
    101101
     
    103103
    104104FunctionType::FunctionType( const FunctionType & o )
    105 : ParameterizedType( o.qualifiers, copy( o.attributes ) ), returns(), params(), 
     105: ParameterizedType( o.qualifiers, copy( o.attributes ) ), returns(), params(),
    106106  isVarArgs( o.isVarArgs ) {
    107107        Pass< ForallSubstitutor > sub;
    108108        initWithSub( o, sub );           // initialize substitution map
    109         returns = sub.pass( o.returns ); // apply to return and parameter types
    110         params = sub.pass( o.params );
     109        returns = sub.core( o.returns ); // apply to return and parameter types
     110        params = sub.core( o.params );
    111111}
    112112
     
    128128void ReferenceToType::initWithSub( const ReferenceToType & o, Pass< ForallSubstitutor > & sub ) {
    129129        ParameterizedType::initWithSub( o, sub ); // initialize substitution
    130         params = sub.pass( o.params );            // apply to parameters
     130        params = sub.core( o.params );            // apply to parameters
    131131}
    132132
     
    166166// --- TraitInstType
    167167
    168 TraitInstType::TraitInstType( 
     168TraitInstType::TraitInstType(
    169169        const TraitDecl * b, CV::Qualifiers q, std::vector<ptr<Attribute>>&& as )
    170170: ReferenceToType( b->name, q, move(as) ), base( b ) {}
     
    172172// --- TypeInstType
    173173
    174 TypeInstType::TypeInstType( const TypeInstType & o ) 
     174TypeInstType::TypeInstType( const TypeInstType & o )
    175175: ReferenceToType( o.name, o.qualifiers, copy( o.attributes ) ), base(), kind( o.kind ) {
    176176        Pass< ForallSubstitutor > sub;
    177177        initWithSub( o, sub );      // initialize substitution
    178         base = sub.pass( o.base );  // apply to base type
     178        base = sub.core( o.base );  // apply to base type
    179179}
    180180
Note: See TracChangeset for help on using the changeset viewer.