Ignore:
Timestamp:
Jun 1, 2023, 6:29:47 PM (13 months ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ast-experimental, master
Children:
24d6572, ded6c2a6
Parents:
1803d4d
Message:

remove reference to symbol table in unify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/SymbolTable.cpp

    r1803d4d r251ce80  
    278278                } else {
    279279                        // typedef redeclarations are errors only if types are different
    280                         if ( ! ResolvExpr::typesCompatible( existing->base, added->base, SymbolTable{} ) ) {
     280                        if ( ! ResolvExpr::typesCompatible( existing->base, added->base ) ) {
    281281                                SemanticError( added->location, "redeclaration of " + added->name );
    282282                        }
     
    643643        } else if ( existing.id->linkage.is_mangled
    644644                        || ResolvExpr::typesCompatible(
    645                                 added->get_type(), existing.id->get_type(), SymbolTable{} ) ) {
     645                                added->get_type(), existing.id->get_type() ) ) {
    646646
    647647                // it is a conflict if one declaration is deleted and the other is not
Note: See TracChangeset for help on using the changeset viewer.