Skip to content

Commit 4097255

Browse files
committed
SILOptimizer: address C5030
i``` swift\lib\SILOptimizer\Mandatory\MoveOnlyAddressCheckerUtils.cpp(2981): warning C5030: attribute [[clang::fallthrough]] is not recognized ``` Replace the use of `clang::fallthrough` with `LLVM_FALLTHROUGH` which properly uses the C++ standard spelling (`[[fallthrough]]`) depending on the compiler version.
1 parent 3787044 commit 4097255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyAddressCheckerUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2979,7 +2979,7 @@ bool GlobalLivenessChecker::testInstVectorLiveness(
29792979
LLVM_DEBUG(llvm::dbgs() << " Also a def block; skipping!\n");
29802980
continue;
29812981
}
2982-
[[clang::fallthrough]];
2982+
LLVM_FALLTHROUGH;
29832983
}
29842984
case IsLive::LiveWithin:
29852985
if (isLive == IsLive::LiveWithin)

0 commit comments

Comments
 (0)