Changeset aebf5b0 for src/AST/Expr.hpp
- Timestamp:
- Jul 17, 2020, 4:58:54 PM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.hpp
rc15085d raebf5b0 114 114 ResnSlots& resnSlots() { 115 115 switch (mode) { 116 case Empty: new(&data.resnSlots) ResnSlots{}; mode = Slots; // fallthrough116 case Empty: new(&data.resnSlots) ResnSlots{}; mode = Slots; [[fallthrough]]; 117 117 case Slots: return data.resnSlots; 118 118 case Params: assertf(false, "Cannot return to resnSlots from Params"); abort(); … … 131 131 InferredParams& inferParams() { 132 132 switch (mode) { 133 case Slots: data.resnSlots.~ResnSlots(); // fallthrough134 case Empty: new(&data.inferParams) InferredParams{}; mode = Params; // fallthrough133 case Slots: data.resnSlots.~ResnSlots(); [[fallthrough]]; 134 case Empty: new(&data.inferParams) InferredParams{}; mode = Params; [[fallthrough]]; 135 135 case Params: return data.inferParams; 136 136 } … … 150 150 case Slots: 151 151 data.resnSlots.~ResnSlots(); 152 // fallthrough152 [[fallthrough]]; 153 153 case Empty: 154 154 new(&data.inferParams) InferredParams{ std::move( ps ) };
Note: See TracChangeset
for help on using the changeset viewer.