Skip to content

Commit

Permalink
[clang][analyzer][NFC] Remove unnecessary FALLTHROUGH markers
Browse files Browse the repository at this point in the history
They are redundant with the [[fallthrough]]; attribute that follows.

Reviewed By: steakhal

Differential Revision: https://reviews.llvm.org/D151723
  • Loading branch information
gribozavr committed May 30, 2023
1 parent 0da99ff commit daa95c7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion clang/lib/CodeGen/CGCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5716,7 +5716,6 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
assert(unpaddedIndex == 0);
Builder.CreateStore(elt, eltAddr);
}
// FALLTHROUGH
[[fallthrough]];
}

Expand Down
1 change: 0 additions & 1 deletion clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,6 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred,
}
}
}
// FALLTHROUGH
[[fallthrough]];
}

Expand Down
1 change: 0 additions & 1 deletion clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ std::optional<SVal> SValBuilder::getConstantVal(const Expr *E) {
return evalCast(*Val, CE->getType(), SE->getType());
}
}
// FALLTHROUGH
[[fallthrough]];
}

Expand Down

0 comments on commit daa95c7

Please sign in to comment.