Skip to content

Commit 95a3bb8

Browse files
committed
NFC: Suppress a -Wimplicit-fallthrough warning in InstructionUtils.cpp.
1 parent 4eacb4d commit 95a3bb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SIL/Utils/InstructionUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ RuntimeEffect swift::getRuntimeEffect(SILInstruction *inst, SILType &impactType)
917917
auto as = ApplySite(inst);
918918

919919
switch (as.getSubstCalleeType()->getRepresentation()) {
920-
case SILFunctionTypeRepresentation::ObjCMethod: {
920+
case SILFunctionTypeRepresentation::ObjCMethod:
921921
if (auto *callee = as.getCalleeFunction()) {
922922
if (auto *clangDecl = callee->getClangDecl()) {
923923
if (auto clangMethodDecl = dyn_cast<clang::ObjCMethodDecl>(clangDecl)) {
@@ -927,7 +927,7 @@ RuntimeEffect swift::getRuntimeEffect(SILInstruction *inst, SILType &impactType)
927927
}
928928
}
929929
}
930-
}
930+
LLVM_FALLTHROUGH;
931931
case SILFunctionTypeRepresentation::Block:
932932
rt |= RuntimeEffect::ObjectiveC | RuntimeEffect::MetaData;
933933
break;

0 commit comments

Comments
 (0)