Skip to content

Commit b208bda

Browse files
[ADT] Fix formatting in DenseMapInfo.h (#156926)
This is a follow-up for #156810.
1 parent 3285251 commit b208bda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/include/llvm/ADT/DenseMapInfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ template <typename... Ts> struct DenseMapInfo<std::tuple<Ts...>> {
180180
}
181181

182182
template <unsigned I> static unsigned getHashValueImpl(const Tuple &values) {
183-
if constexpr (I == sizeof...(Ts))
183+
if constexpr (I == sizeof...(Ts)) {
184184
return 0;
185-
else {
185+
} else {
186186
using EltType = std::tuple_element_t<I, Tuple>;
187187
return detail::combineHashValue(
188188
DenseMapInfo<EltType>::getHashValue(std::get<I>(values)),
@@ -196,9 +196,9 @@ template <typename... Ts> struct DenseMapInfo<std::tuple<Ts...>> {
196196

197197
template <unsigned I>
198198
static bool isEqualImpl(const Tuple &lhs, const Tuple &rhs) {
199-
if constexpr (I == sizeof...(Ts))
199+
if constexpr (I == sizeof...(Ts)) {
200200
return true;
201-
else {
201+
} else {
202202
using EltType = std::tuple_element_t<I, Tuple>;
203203
return DenseMapInfo<EltType>::isEqual(std::get<I>(lhs),
204204
std::get<I>(rhs)) &&

0 commit comments

Comments
 (0)