Ignore:
Timestamp:
Jun 3, 2019, 5:36:47 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
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:
98a8290, ee574a2
Parents:
f474e91 (diff), dafe9e1 (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 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    rf474e91 r4ae2364  
    4747namespace {
    4848
    49 // This is to preserve the SymTab::dereferenceOperator hack. It does not (and perhaps should not)
     49// This is to preserve the FindSpecialDecls hack. It does not (and perhaps should not)
    5050// allow us to use the same stratagy in the new ast.
    5151ast::FunctionDecl * dereferenceOperator = nullptr;
     52ast::StructDecl   * dtorStruct = nullptr;
     53ast::FunctionDecl * dtorStructDestroy = nullptr;
    5254
    5355}
     
    176178                        Validate::dereferenceOperator = decl;
    177179                }
     180                if ( dtorStructDestroy == node ) {
     181                        Validate::dtorStructDestroy = decl;
     182                }
    178183                return declWithTypePostamble( decl, node );
    179184        }
     
    231236                        LinkageSpec::Spec( node->linkage.val )
    232237                );
     238
     239                if ( dtorStruct == node ) {
     240                        Validate::dtorStruct = decl;
     241                }
     242
    233243                return aggregatePostamble( decl, node );
    234244        }
     
    14581468                        dereferenceOperator = decl;
    14591469                }
     1470
     1471                if ( Validate::dtorStructDestroy == old ) {
     1472                        dtorStructDestroy = decl;
     1473                }
    14601474        }
    14611475
     
    14791493
    14801494                this->node = decl;
     1495
     1496                if ( Validate::dtorStruct == old ) {
     1497                        dtorStruct = decl;
     1498                }
    14811499        }
    14821500
Note: See TracChangeset for help on using the changeset viewer.