Skip to content

Commit d93d24b

Browse files
hughbejrose-apple
authored andcommitted
Fix warnings building swift/ABI with MSVC (#6031)
1 parent d0a48c8 commit d93d24b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/ABI/MetadataValues.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define SWIFT_ABI_METADATAVALUES_H
2121

2222
#include "swift/AST/Ownership.h"
23+
#include "swift/Basic/Unreachable.h"
2324

2425
#include <stdlib.h>
2526
#include <stdint.h>
@@ -379,6 +380,8 @@ class ProtocolDescriptorFlags {
379380
case ProtocolDispatchStrategy::Swift:
380381
return true;
381382
}
383+
384+
swift_unreachable("Unhandled ProtocolDispatchStrategy in switch.");
382385
}
383386

384387
/// Return the identifier if this is a special runtime-known protocol.

0 commit comments

Comments
 (0)