Changeset d8e2a09 for src/ResolvExpr


Ignore:
Timestamp:
Apr 10, 2022, 10:06:55 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
5bb1ac1
Parents:
92538ab
Message:

Merge with master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r92538ab rd8e2a09  
    14841484                                        const ast::Type * pointerBase = enumBaseAsPtr->base.get();
    14851485                                        if ( dynamic_cast<const ast::BasicType *>(pointerBase) ) {
    1486                                                 objectDecl = fixObjectType(objectDecl, symtab);
     1486                                                objectDecl = fixObjectType(objectDecl, context);
    14871487                                                if (dynamic_cast<const ast::BasicType *>(pointerBase)->kind == ast::BasicType::Char)
    14881488                                                currentObject = ast::CurrentObject{
     
    14911491                                                        } };
    14921492                                        } else {
    1493                                                 objectDecl = fixObjectType(objectDecl, symtab);
     1493                                                objectDecl = fixObjectType(objectDecl, context);
    14941494                                                currentObject = ast::CurrentObject{objectDecl->location, new ast::BasicType{ ast::BasicType::SignedInt } };
    14951495                                        }
    14961496                                }
    14971497                        } else {
    1498                                 objectDecl = fixObjectType(objectDecl, symtab);
     1498                                objectDecl = fixObjectType(objectDecl, context);
    14991499                                currentObject = ast::CurrentObject{
    15001500                                        objectDecl->location, new ast::BasicType{ ast::BasicType::SignedInt } };
Note: See TracChangeset for help on using the changeset viewer.