Ignore:
Timestamp:
May 22, 2019, 5:32:46 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
489bacf, f23de79d
Parents:
893e106
Message:

Temporary patch around Pass issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/GenericSubstitution.cpp

    r893e106 r722c4831  
    3131                TypeSubstitution sub;
    3232
    33                 const Type * previsit( const Type * ty ) {
     33                void previsit( const Type * ty ) {
    3434                        assertf( false, "Attempted generic substitution for non-aggregate type: %s",
    3535                                toString( ty ).c_str() );
    36                         return ty;
    3736                }
    3837
    39                 const ReferenceType * previsit( const ReferenceType * ty ) {
     38                void previsit( const ReferenceType * ty ) {
    4039                        // do nothing; allows substitution from base type
    41                         return ty;
    4240                }
    4341
    44                 const ReferenceToType * previsit( const ReferenceToType * ty ) {
     42                void previsit( const ReferenceToType * ty ) {
    4543                        visit_children = false;
    4644                        // build substitution from base parameters
    4745                        const AggregateDecl * aggr = ty->aggr();
    4846                        sub = TypeSubstitution{ aggr->params.begin(), aggr->params.end(), ty->params.begin() };
    49                         return ty;
    5047                }
    5148        };
Note: See TracChangeset for help on using the changeset viewer.