Skip to content

Commit 8605d54

Browse files
committed
Style changes
1 parent 4fda744 commit 8605d54

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/include/llvm/ADT/SmallSet.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,23 +217,22 @@ class SmallSet {
217217
"ArgType must be convertible to T!");
218218
if (!isSmall()) {
219219
auto [I, Inserted] = Set.insert(std::forward<ArgType>(V));
220-
return std::make_pair(const_iterator(I), Inserted);
220+
return {const_iterator(I), Inserted};
221221
}
222222

223223
auto I = std::find(Vector.begin(), Vector.end(), V);
224224
if (I != Vector.end()) // Don't reinsert if it already exists.
225-
return std::make_pair(const_iterator(I), false);
225+
return {const_iterator(I), false};
226226
if (Vector.size() < N) {
227227
Vector.push_back(std::forward<ArgType>(V));
228-
return std::make_pair(const_iterator(std::prev(Vector.end())), true);
228+
return {const_iterator(std::prev(Vector.end())), true};
229229
}
230230

231231
// Otherwise, grow from vector to set.
232232
Set.insert(std::make_move_iterator(Vector.begin()),
233233
std::make_move_iterator(Vector.end()));
234234
Vector.clear();
235-
return std::make_pair(
236-
const_iterator(Set.insert(std::forward<ArgType>(V)).first), true);
235+
return {const_iterator(Set.insert(std::forward<ArgType>(V)).first), true};
237236
}
238237
};
239238

0 commit comments

Comments
 (0)