Changeset c194661 for src/Parser/TypeData.cc
- Timestamp:
- Jun 20, 2018, 11:23:42 AM (6 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 0b3b2ae
- Parents:
- 9a7a3b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cc
r9a7a3b6 rc194661 99 99 case Builtin: 100 100 // builtin = new Builtin_t; 101 case Qualified: 102 qualified.parent = nullptr; 103 qualified.child = nullptr; 101 104 break; 102 105 } // switch … … 167 170 // delete builtin; 168 171 break; 172 case Qualified: 173 delete qualified.parent; 174 delete qualified.child; 169 175 } // switch 170 176 } // TypeData::~TypeData … … 240 246 assert( builtintype == DeclarationNode::Zero || builtintype == DeclarationNode::One ); 241 247 newtype->builtintype = builtintype; 248 break; 249 case Qualified: 250 newtype->qualified.parent = maybeClone( qualified.parent ); 251 newtype->qualified.child = maybeClone( qualified.child ); 242 252 break; 243 253 } // switch … … 468 478 return new EnumInstType( buildQualifiers( td ), "" ); 469 479 case TypeData::SymbolicInst: 470 return buildSymbolicInst( td ); ;480 return buildSymbolicInst( td ); 471 481 case TypeData::Tuple: 472 482 return buildTuple( td ); … … 483 493 return new VarArgsType( buildQualifiers( td ) ); 484 494 } 495 case TypeData::GlobalScope: 496 return new GlobalScopeType(); 497 case TypeData::Qualified: 498 return new QualifiedType( buildQualifiers( td ), typebuild( td->qualified.parent ), typebuild( td->qualified.child ) ); 485 499 case TypeData::Symbolic: 486 500 case TypeData::Enum: … … 488 502 assert( false ); 489 503 } // switch 504 490 505 return nullptr; 491 506 } // typebuild
Note: See TracChangeset
for help on using the changeset viewer.