Changeset 51ff278 for src/AST/Expr.hpp
- Timestamp:
- May 21, 2019, 2:28:00 PM (4 years ago)
- Branches:
- arm-eh, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- e0016a5
- Parents:
- 17a0228a (diff), 19e567dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.hpp
r17a0228a r51ff278 106 106 case Params: assert(!"Cannot return to resnSlots from Params"); 107 107 } 108 return *((ResnSlots*)nullptr); 109 } 110 111 const ResnSlots& resnSlotsConst() const { 112 if (mode == Slots) { 113 return data.resnSlots; 114 } 115 assert(!"Mode was not already resnSlots"); 116 return *((ResnSlots*)nullptr); 108 117 } 109 118 … … 114 123 case Params: return data.inferParams; 115 124 } 125 return *((InferredParams*)nullptr); 126 } 127 128 const InferredParams& inferParamsConst() const { 129 if (mode == Params) { 130 return data.inferParams; 131 } 132 assert(!"Mode was not already Params"); 133 return *((InferredParams*)nullptr); 116 134 } 117 135 };
Note: See TracChangeset
for help on using the changeset viewer.