Changes in src/AST/Pass.proto.hpp [b0abc8a0:10a1225]
- File:
-
- 1 edited
-
src/AST/Pass.proto.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.proto.hpp
rb0abc8a0 r10a1225 126 126 template<typename pass_t, typename node_t> 127 127 static inline auto previsit( pass_t & pass, const node_t * & node, int ) -> decltype( pass.previsit( node ), void() ) { 128 static_assert(129 std::is_base_of<const node_t, typename std::remove_pointer<decltype( pass.previsit( node ) )>::type >::value,130 "Previsit may not change the type of the node. Use postvisit instead."131 );132 128 node = pass.previsit( node ); 133 129 assert(node);
Note:
See TracChangeset
for help on using the changeset viewer.