Changeset fa2c005 for src/Validate/LinkReferenceToTypes.cpp
- Timestamp:
- Jun 8, 2023, 3:19:43 PM (12 months ago)
- Branches:
- ADT
- Parents:
- 044ae62
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/LinkReferenceToTypes.cpp
r044ae62 rfa2c005 20 20 #include "Validate/ForallPointerDecay.hpp" 21 21 #include "Validate/NoIdSymbolTable.hpp" 22 #include <assert.h> 22 23 23 24 namespace Validate { … … 35 36 ast::UnionInstType const * postvisit( ast::UnionInstType const * type ); 36 37 ast::TraitInstType const * postvisit( ast::TraitInstType const * type ); 38 ast::AdtInstType const * postvisit( ast::AdtInstType const * type ); 37 39 void previsit( ast::QualifiedType const * type ); 38 40 void postvisit( ast::QualifiedType const * type ); … … 107 109 auto mut = ast::mutate( type ); 108 110 forwardStructs[ mut->name ].push_back( mut ); 111 type = mut; 112 } 113 return type; 114 } 115 116 ast::AdtInstType const * LinkTypesCore::postvisit( ast::AdtInstType const * type ) { 117 ast::AdtDecl const * decl = symtab.lookupAdt( type->name ); 118 assert( decl != nullptr ); 119 if ( decl ) { 120 auto mut = ast::mutate( type ); 121 mut->base = const_cast<ast::AdtDecl *>( decl ); 109 122 type = mut; 110 123 }
Note: See TracChangeset
for help on using the changeset viewer.