Changeset d88f8b3b


Ignore:
Timestamp:
May 29, 2019, 5:08:05 PM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
arm-eh, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
6054b18, 8d70648
Parents:
0aedb01
Message:

Another fix to break cycles in the converter.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • driver/cc1.cc

    r0aedb01 rd88f8b3b  
    486486int main( const int argc, const char * const argv[], __attribute__((unused)) const char * const env[] ) {
    487487        #ifdef __DEBUG_H__
    488         for ( int int i = 0; env[i] != NULL; i += 1 ) {
     488        for ( int i = 0; env[i] != NULL; i += 1 ) {
    489489                cerr << env[i] << endl;
    490490        } // for
  • 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.