Skip to content

Commit 5684996

Browse files
committed
Fix non-asserts builds of ExternalUnion.
1 parent 1666ebb commit 5684996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Basic/ExternalUnion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class BasicExternalUnion {
7979
public:
8080
/// Construct a union member in-place.
8181
template <class T, class... Args>
82-
T &emplaceWithoutIndex(int index, Args &&... args) {
82+
T &emplaceWithoutIndex(Args &&... args) {
8383
constexpr int typeIndex = indexOf<T, Members...>::value;
8484
static_assert(typeIndex != -1, "type not in union");
8585

0 commit comments

Comments
 (0)