Ignore:
Timestamp:
Oct 27, 2020, 4:14:48 PM (19 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr
Children:
1be1e5a, b35ab2d
Parents:
5d2db68
Message:

Changed approach for isInFunction and implemented for old ast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.h

    r5d2db68 r53d55b6  
    354354        virtual TypeSubstitution * mutate( TypeSubstitution * sub ) final;
    355355
     356        bool isInFunction() const {
     357                return inFunction;
     358        }
     359
    356360private:
    357361        bool inFunction = false;
     
    526530public:
    527531        PassVisitor<pass_type> * const visitor = nullptr;
     532
     533        bool isInFunction() const {
     534                return visitor->inFunction;
     535        }
    528536};
    529537
Note: See TracChangeset for help on using the changeset viewer.