Ignore:
Timestamp:
Mar 15, 2022, 8:12:12 PM (7 months ago)
Author:
Fangren Yu <f37yu@…>
Branches:
enum, master, pthread-emulation, qualifiedEnum
Children:
39d8950
Parents:
708ae38
Message:

fix some code that clearly does not accomplish the correct thing.
has no effect on tests; report if this changes anything

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Unify.cc

    r708ae38 r9d8124f  
    943943                        // check that the other type is compatible and named the same
    944944                        auto otherInst = dynamic_cast< const XInstType * >( other );
    945                         this->result = otherInst && inst->name == otherInst->name;
     945                        if (otherInst && inst->name == otherInst->name) this->result = otherInst;
    946946                        return otherInst;
    947947                }
Note: See TracChangeset for help on using the changeset viewer.