aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ConstantFolding.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-08-08 11:24:15 -0700
committerFangrui Song <i@maskray.me>2022-08-08 11:24:15 -0700
commitde9d80c1c579e39cc658a508f1d4ba1cd792e4d5 (patch)
tree169da231cb69f41d33d52469716f5bc337f17465 /llvm/lib/Analysis/ConstantFolding.cpp
parent09db7f533174cdda4655d0114cd88bd22d336e31 (diff)
downloadllvm-de9d80c1c579e39cc658a508f1d4ba1cd792e4d5.zip
llvm-de9d80c1c579e39cc658a508f1d4ba1cd792e4d5.tar.gz
llvm-de9d80c1c579e39cc658a508f1d4ba1cd792e4d5.tar.bz2
[llvm] LLVM_FALLTHROUGH => [[fallthrough]]. NFC
With C++17 there is no Clang pedantic warning or MSVC C5051.
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r--llvm/lib/Analysis/ConstantFolding.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index 95ad90b..1803a69 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -2641,7 +2641,7 @@ static Constant *ConstantFoldScalarCall2(StringRef Name,
// undef - X -> { 0, false }
if (!C0 || !C1)
return Constant::getNullValue(Ty);
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Intrinsic::uadd_with_overflow:
case Intrinsic::sadd_with_overflow:
// X + undef -> { -1, false }
@@ -2652,7 +2652,7 @@ static Constant *ConstantFoldScalarCall2(StringRef Name,
{Constant::getAllOnesValue(Ty->getStructElementType(0)),
Constant::getNullValue(Ty->getStructElementType(1))});
}
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Intrinsic::smul_with_overflow:
case Intrinsic::umul_with_overflow: {
// undef * X -> { 0, false }
@@ -2944,7 +2944,7 @@ static Constant *ConstantFoldScalarCall3(StringRef Name,
// wrong result if C3 was -0.0.
return ConstantFP::get(Ty->getContext(), APFloat(0.0f) + C3);
}
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
}
case Intrinsic::fma:
case Intrinsic::fmuladd: {