Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Mutator.cc

    r47534159 r2a4b088  
    2222#include "Expression.h"
    2323#include "Constant.h"
    24 #include "utility.h"
     24#include "Common/utility.h"
    2525
    2626Mutator::Mutator() {}
     
    259259        }
    260260        return alignofExpr;
     261}
     262
     263Expression *Mutator::mutate( UntypedOffsetofExpr *offsetofExpr ) {
     264        mutateAll( offsetofExpr->get_results(), *this );
     265        offsetofExpr->set_type( maybeMutate( offsetofExpr->get_type(), *this ) );
     266        return offsetofExpr;
     267}
     268
     269Expression *Mutator::mutate( OffsetofExpr *offsetofExpr ) {
     270        mutateAll( offsetofExpr->get_results(), *this );
     271        offsetofExpr->set_type( maybeMutate( offsetofExpr->get_type(), *this ) );
     272        offsetofExpr->set_member( maybeMutate( offsetofExpr->get_member(), *this ) );
     273        return offsetofExpr;
    261274}
    262275
Note: See TracChangeset for help on using the changeset viewer.