File tree 1 file changed +3
-4
lines changed
llvm/include/llvm/Support
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,14 @@ namespace detail {
110
110
template <typename T1> constexpr size_t aligner () { return alignof (T1); }
111
111
112
112
template <typename T1, typename T2, typename ... Ts> constexpr size_t aligner () {
113
- size_t rest = aligner<T2, Ts...>();
114
- return ( alignof (T1) > rest) ? alignof (T1) : rest ;
113
+ return ( alignof (T1) > aligner<T2, Ts...>()) ? alignof (T1)
114
+ : aligner<T2, Ts...>() ;
115
115
}
116
116
117
117
template <typename T1> constexpr size_t sizer () { return sizeof (T1); }
118
118
119
119
template <typename T1, typename T2, typename ... Ts> constexpr size_t sizer () {
120
- size_t rest = sizer<T2, Ts...>();
121
- return (sizeof (T1) > rest) ? sizeof (T1) : rest;
120
+ return (sizeof (T1) > sizer<T2, Ts...>()) ? sizeof (T1) : sizer<T2, Ts...>();
122
121
}
123
122
} // end namespace detail
124
123
You can’t perform that action at this time.
0 commit comments