Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r1931bb01 r7edd5c1  
    168168                auto attr = get<Attribute>().acceptL( node->attributes );
    169169
    170                 // This field can be unset very early on (Pre-FixReturnTypes).
    171                 auto newType = (type) ? type->clone() : nullptr;
    172 
    173170                auto decl = new ObjectDecl(
    174171                        node->name,
     
    176173                        LinkageSpec::Spec( node->linkage.val ),
    177174                        bfwd,
    178                         newType,
     175                        type->clone(),
    179176                        nullptr, // prevent infinite loop
    180177                        attr,
     
    15821579
    15831580        virtual void visit( const ObjectDecl * old ) override final {
    1584                 if ( inCache( old ) ) {
    1585                         return;
    1586                 }
    15871581                auto&& type = GET_ACCEPT_1(type, Type);
    15881582                auto&& init = GET_ACCEPT_1(init, Init);
    15891583                auto&& bfwd = GET_ACCEPT_1(bitfieldWidth, Expr);
    15901584                auto&& attr = GET_ACCEPT_V(attributes, Attribute);
    1591 
     1585                if ( inCache( old ) ) {
     1586                        return;
     1587                }
    15921588                auto decl = new ast::ObjectDecl(
    15931589                        old->location,
Note: See TracChangeset for help on using the changeset viewer.