Changeset d88f8b3b for src


Ignore:
Timestamp:
May 29, 2019, 5:08:05 PM (5 years ago)
Author:
Andrew Beach <ajbeach@…>
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:
6054b18, 8d70648
Parents:
0aedb01
Message:

Another fix to break cycles in the converter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r0aedb01 rd88f8b3b  
    1010// Created On       : Thu May 09 15::37::05 2019
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed May 29 11:05:00 2019
    13 // Update Count     : 8
     12// Last Modified On : Wed May 29 17:05:00 2019
     13// Update Count     : 9
    1414//
    1515
     
    166166                        LinkageSpec::Spec( node->linkage.val ),
    167167                        get<FunctionType>().accept1( node->type ),
    168                         get<CompoundStmt>().accept1( node->stmts ),
     168                        {},
    169169                        get<Attribute>().acceptL( node->attributes ),
    170170                        Type::FuncSpecifiers( node->funcSpec.val )
    171171                );
     172                cache.emplace( node, decl );
     173                decl->statements = get<CompoundStmt>().accept1( node->stmts );
    172174                decl->withExprs = get<Expression>().acceptL( node->withExprs );
    173175                if ( dereferenceOperator == node ) {
     
    14361438                        old->name,
    14371439                        GET_ACCEPT_1(type, FunctionType),
    1438                         GET_ACCEPT_1(statements, CompoundStmt),
     1440                        {},
    14391441                        { old->storageClasses.val },
    14401442                        { old->linkage.val },
     
    14431445                };
    14441446                cache.emplace( old, decl );
     1447                decl->stmts = GET_ACCEPT_1(statements, CompoundStmt);
    14451448                decl->scopeLevel = old->scopeLevel;
    14461449                decl->mangleName = old->mangleName;
Note: See TracChangeset for help on using the changeset viewer.