Changeset 24d6572 for src/Validate/ReplaceTypedef.cpp
- Timestamp:
- Jun 12, 2023, 2:45:32 PM (2 years ago)
- Branches:
- ast-experimental, master
- Children:
- 62d62db
- Parents:
- 34b4268 (diff), 251ce80 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/ReplaceTypedef.cpp
r34b4268 r24d6572 16 16 #include "ReplaceTypedef.hpp" 17 17 18 #include "AST/Copy.hpp" 18 19 #include "AST/Pass.hpp" 19 20 #include "Common/ScopedMap.h" 20 21 #include "Common/UniqueName.h" 21 22 #include "Common/utility.h" 22 #include "ResolvExpr/ typeops.h"23 #include "ResolvExpr/Unify.h" 23 24 24 25 namespace Validate { … … 149 150 // constant/enumerator. The effort required to fix this corner case 150 151 // likely outweighs the utility of allowing it. 151 if ( !ResolvExpr::typesCompatible( t0, t1 , ast::SymbolTable())152 if ( !ResolvExpr::typesCompatible( t0, t1 ) 152 153 || ast::Pass<VarLenChecker>::read( t0 ) 153 154 || ast::Pass<VarLenChecker>::read( t1 ) ) { … … 186 187 187 188 void ReplaceTypedefCore::previsit( ast::TypeDecl const * decl ) { 188 TypedefMap::iterator iter = typedefNames.find( decl->name ); 189 if ( iter != typedefNames.end() ) { 190 typedefNames.erase( iter ); 191 } 189 typedefNames.erase( decl->name ); 192 190 typedeclNames.insert( decl->name, decl ); 193 191 }
Note:
See TracChangeset
for help on using the changeset viewer.