diff options
author | Fangrui Song <i@maskray.me> | 2022-08-08 11:24:15 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-08-08 11:24:15 -0700 |
commit | de9d80c1c579e39cc658a508f1d4ba1cd792e4d5 (patch) | |
tree | 169da231cb69f41d33d52469716f5bc337f17465 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 09db7f533174cdda4655d0114cd88bd22d336e31 (diff) | |
download | llvm-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/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index f6d0faf..65975d2 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -1200,7 +1200,7 @@ static void computeKnownBitsFromOperator(const Operator *I, case Instruction::PtrToInt: case Instruction::IntToPtr: // Fall through and handle them the same as zext/trunc. - LLVM_FALLTHROUGH; + [[fallthrough]]; case Instruction::ZExt: case Instruction::Trunc: { Type *SrcTy = I->getOperand(0)->getType(); @@ -2073,7 +2073,7 @@ static bool isPowerOfTwoRecurrence(const PHINode *PN, bool OrZero, // power of two is not sufficient, and it has to be a constant. if (!match(Start, m_Power2()) || match(Start, m_SignMask())) return false; - LLVM_FALLTHROUGH; + [[fallthrough]]; case Instruction::UDiv: // Divisor must be a power of two. // If OrZero is false, cannot guarantee induction variable is non-zero after @@ -2085,7 +2085,7 @@ static bool isPowerOfTwoRecurrence(const PHINode *PN, bool OrZero, case Instruction::AShr: if (!match(Start, m_Power2()) || match(Start, m_SignMask())) return false; - LLVM_FALLTHROUGH; + [[fallthrough]]; case Instruction::LShr: return OrZero || Q.IIQ.isExact(BO); default: @@ -3601,7 +3601,7 @@ static bool cannotBeOrderedLessThanZeroImpl(const Value *V, (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs())) return true; - LLVM_FALLTHROUGH; + [[fallthrough]]; case Instruction::FAdd: case Instruction::FRem: return cannotBeOrderedLessThanZeroImpl(I->getOperand(0), TLI, SignBitOnly, @@ -5137,7 +5137,7 @@ static bool canCreateUndefOrPoison(const Operator *Op, bool PoisonOnly, return false; } } - LLVM_FALLTHROUGH; + [[fallthrough]]; case Instruction::CallBr: case Instruction::Invoke: { const auto *CB = cast<CallBase>(Op); |