Skip to content

Commit b3a9408

Browse files
authored
Merge pull request #10101 from compnerd/fallthrough
Serialization: silence a warning on MSVC
2 parents 0c8bc56 + 438f37b commit b3a9408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Serialization/ASTWriterStmt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,8 +2320,8 @@ void ASTStmtWriter::VisitBoundsSafetyPointerPromotionExpr(
23202320
VisitExpr(E);
23212321
Record.push_back(E->getNumChildren());
23222322
switch (E->getNumChildren()) {
2323-
case 3: Record.AddStmt(E->getLowerBound()); [[clang::fallthrough]];
2324-
case 2: Record.AddStmt(E->getUpperBound()); [[clang::fallthrough]];
2323+
case 3: Record.AddStmt(E->getLowerBound()); LLVM_FALLTHROUGH;
2324+
case 2: Record.AddStmt(E->getUpperBound()); LLVM_FALLTHROUGH;
23252325
case 1: Record.AddStmt(E->getPointer()); break;
23262326
default: llvm_unreachable("incorrect number of child nodes");
23272327
}

0 commit comments

Comments
 (0)