Changeset b2da0574 for src/Parser
- Timestamp:
- Apr 18, 2018, 5:15:19 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 2ae16219
- Parents:
- f74eb47
- Location:
- src/Parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
rf74eb47 rb2da0574 924 924 delete newType->aggInst.aggregate->enumeration.constants; 925 925 newType->aggInst.aggregate->enumeration.constants = nullptr; 926 newType->aggInst.aggregate->enumeration.body = false; 926 927 } else { 927 928 assert( newType->aggInst.aggregate->kind == TypeData::Aggregate ); 928 929 delete newType->aggInst.aggregate->aggregate.fields; 929 930 newType->aggInst.aggregate->aggregate.fields = nullptr; 931 newType->aggInst.aggregate->aggregate.body = false; 930 932 } // if 931 933 // don't hoist twice -
src/Parser/TypeData.cc
rf74eb47 rb2da0574 490 490 switch ( td->kind ) { 491 491 case TypeData::Aggregate: 492 if ( ! toplevel && td->aggregate. fields) {492 if ( ! toplevel && td->aggregate.body ) { 493 493 ret = td->clone(); 494 494 } // if 495 495 break; 496 496 case TypeData::Enum: 497 if ( ! toplevel && td->enumeration. constants) {497 if ( ! toplevel && td->enumeration.body ) { 498 498 ret = td->clone(); 499 499 } // if
Note: See TracChangeset
for help on using the changeset viewer.