Changeset 93f74c0f


Ignore:
Timestamp:
Jun 1, 2021, 1:52:19 PM (16 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
68ff3de
Parents:
e46ea00
Message:

Changed how new pass visitor gets the return type of previsit to avoid a warning in gcc-11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.proto.hpp

    re46ea00 r93f74c0f  
    119119        template<typename core_t, typename node_t>
    120120        struct is_valid_previsit {
    121                 using ret_t = decltype( ((core_t*)nullptr)->previsit( (const node_t *)nullptr ) );
     121                using ret_t = decltype( std::declval<core_t*>()->previsit( std::declval<const node_t *>() ) );
    122122
    123123                static constexpr bool value = std::is_void< ret_t >::value ||
Note: See TracChangeset for help on using the changeset viewer.