Ignore:
Timestamp:
Jun 1, 2017, 3:18:58 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, resolv-new, with_gc
Children:
134322e
Parents:
5013c62
Message:

Fixed implementation of env, some optim needed

File:
1 edited

Legend:

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

    r5013c62 r3fb9a83  
    6969template<typename pass_type>
    7070static inline void end_scope_impl( __attribute__((unused)) pass_type& pass, __attribute__((unused)) long unused ) {}
     71
     72// Env
     73template<typename pass_type>
     74static inline auto set_env_impl( pass_type& pass, TypeSubstitution * env, __attribute__((unused)) int unused ) ->decltype( pass.env, void() ) {
     75        pass.env = env;
     76}
     77
     78template<typename pass_type>
     79static inline void set_env_impl( __attribute__((unused)) pass_type& pass, __attribute__((unused)) TypeSubstitution * env, __attribute__((unused)) long unused ) {}
Note: See TracChangeset for help on using the changeset viewer.