Changeset 496ffc17 for src/ResolvExpr


Ignore:
Timestamp:
Feb 1, 2024, 5:05:54 PM (5 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
9ddcee1
Parents:
32490deb
Message:

Fix dangling reference to posE function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    r32490deb r496ffc17  
    14031403                // not sufficient to just pass `variableExpr` here, type might have changed since
    14041404                // creation
    1405                 if ( auto obj =  dynamic_cast<const ast::ObjectDecl *>( variableExpr->var.get() )) {
     1405                if ( auto obj = dynamic_cast<const ast::ObjectDecl *>( variableExpr->var.get() )) {
    14061406                        if ( auto enumInstType = dynamic_cast<const ast::EnumInstType *>( obj->type.get() ) ) {
    14071407                                if ( enumInstType->base && enumInstType->base->base ) {
Note: See TracChangeset for help on using the changeset viewer.