Skip to content

Commit d238bfc

Browse files
committed
SIL: Fix a -Wimplicit-fallthrough warning.
Warning introduced by #85118.
1 parent 8ae717a commit d238bfc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,8 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
25502550
case BuiltinValueKind::id: \
25512551
require(false, \
25522552
"this builtin should never show up as builtin inst. It should " \
2553-
"only result in other SIL instructions being emitted by SILGen");
2553+
"only result in other SIL instructions being emitted by SILGen"); \
2554+
break;
25542555
#define BUILTIN(ID, Name, Attrs) \
25552556
case BuiltinValueKind::ID: \
25562557
break;

utils/build-presets.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ enable-new-runtime-build
681681

682682
# Escalate certain C++ warnings to errors for Swift.
683683
extra-swift-cmake-options=
684-
-DSWIFT_EXTRA_CXX_FLAGS="-Werror=unused -Werror=uninitialized"
684+
-DSWIFT_EXTRA_CXX_FLAGS="-Werror=unused -Werror=uninitialized -Werror=implicit-fallthrough"
685685

686686
[preset: buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx,flto]
687687
mixin-preset=buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx

0 commit comments

Comments
 (0)