Changeset 842c3d3


Ignore:
Timestamp:
Apr 24, 2018, 3:54:28 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, with_gc
Children:
ec776c4
Parents:
9d5fb67
Message:

Fix _Static_assert visit to properly track type environments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.impl.h

    r9d5fb67 r842c3d3  
    690690        VISIT_START( node );
    691691
    692         maybeAccept_impl( node->condition, *this );
    693         maybeAccept_impl( node->message  , *this );
     692        node->condition = visitExpression( node->condition );
     693        maybeAccept_impl( node->message, *this );
    694694
    695695        VISIT_END( node );
     
    700700        MUTATE_START( node );
    701701
    702         maybeMutate_impl( node->condition, *this );
    703         maybeMutate_impl( node->message  , *this );
     702        node->condition = mutateExpression( node->condition );
     703        maybeMutate_impl( node->message, *this );
    704704
    705705        MUTATE_END( StaticAssertDecl, node );
Note: See TracChangeset for help on using the changeset viewer.