Changeset aebf5b0


Ignore:
Timestamp:
Jul 17, 2020, 4:58:54 PM (4 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
a8ed717
Parents:
c15085d
Message:

Made a few changes that should have no effect but will silence some warnings.

Location:
src/AST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.hpp

    rc15085d raebf5b0  
    114114                ResnSlots& resnSlots() {
    115115                        switch (mode) {
    116                         case Empty: new(&data.resnSlots) ResnSlots{}; mode = Slots; // fallthrough
     116                        case Empty: new(&data.resnSlots) ResnSlots{}; mode = Slots; [[fallthrough]];
    117117                        case Slots: return data.resnSlots;
    118118                        case Params: assertf(false, "Cannot return to resnSlots from Params"); abort();
     
    131131                InferredParams& inferParams() {
    132132                        switch (mode) {
    133                         case Slots: data.resnSlots.~ResnSlots(); // fallthrough
    134                         case Empty: new(&data.inferParams) InferredParams{}; mode = Params; // fallthrough
     133                        case Slots: data.resnSlots.~ResnSlots(); [[fallthrough]];
     134                        case Empty: new(&data.inferParams) InferredParams{}; mode = Params; [[fallthrough]];
    135135                        case Params: return data.inferParams;
    136136                        }
     
    150150                        case Slots:
    151151                                data.resnSlots.~ResnSlots();
    152                                 // fallthrough
     152                                [[fallthrough]];
    153153                        case Empty:
    154154                                new(&data.inferParams) InferredParams{ std::move( ps ) };
  • src/AST/Pass.proto.hpp

    rc15085d raebf5b0  
    247247
    248248        template< typename pass_t >
    249         static inline auto beginTrace(pass_t & pass, int) -> decltype( pass_t::traceId, void() ) {
     249        static inline auto beginTrace(pass_t &, int) -> decltype( pass_t::traceId, void() ) {
    250250                Stats::Heap::stacktrace_push(pass_t::traceId);
    251251        }
    252252
    253         template< typename pass_t > 
    254         static inline auto endTrace(pass_t & pass, int) -> decltype( pass_t::traceId, void() ) {
     253        template< typename pass_t >
     254        static inline auto endTrace(pass_t &, int) -> decltype( pass_t::traceId, void() ) {
    255255                Stats::Heap::stacktrace_pop();
    256256        }
Note: See TracChangeset for help on using the changeset viewer.