Changes in src/SymTab/Validate.cc [b2da0574:0f40912]
- File:
-
- 1 edited
-
src/SymTab/Validate.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
rb2da0574 r0f40912 148 148 void previsit( ObjectDecl * object ); 149 149 void previsit( FunctionDecl * func ); 150 void previsit( FunctionType * ftype );151 150 void previsit( StructDecl * aggrDecl ); 152 151 void previsit( UnionDecl * aggrDecl ); … … 316 315 317 316 void HoistStruct::previsit( EnumInstType * inst ) { 318 if ( inst->baseEnum && inst->baseEnum->body) {317 if ( inst->baseEnum ) { 319 318 declsToAddBefore.push_front( inst->baseEnum ); 320 319 } … … 322 321 323 322 void HoistStruct::previsit( StructInstType * inst ) { 324 if ( inst->baseStruct && inst->baseStruct->body) {323 if ( inst->baseStruct ) { 325 324 declsToAddBefore.push_front( inst->baseStruct ); 326 325 } … … 328 327 329 328 void HoistStruct::previsit( UnionInstType * inst ) { 330 if ( inst->baseUnion && inst->baseUnion->body) {329 if ( inst->baseUnion ) { 331 330 declsToAddBefore.push_front( inst->baseUnion ); 332 331 } … … 634 633 635 634 void ForallPointerDecay::previsit( ObjectDecl *object ) { 635 forallFixer( object->type->forall, object ); 636 if ( PointerType *pointer = dynamic_cast< PointerType * >( object->type ) ) { 637 forallFixer( pointer->base->forall, object ); 638 } // if 636 639 // ensure that operator names only apply to functions or function pointers 637 640 if ( CodeGen::isOperator( object->name ) && ! dynamic_cast< FunctionType * >( object->type->stripDeclarator() ) ) { … … 642 645 643 646 void ForallPointerDecay::previsit( FunctionDecl *func ) { 647 forallFixer( func->type->forall, func ); 644 648 func->fixUniqueId(); 645 }646 647 void ForallPointerDecay::previsit( FunctionType * ftype ) {648 forallFixer( ftype->forall, ftype );649 649 } 650 650
Note:
See TracChangeset
for help on using the changeset viewer.