Skip to content

Commit 5a12f28

Browse files
committed
LLVM_FALLTHROUGH => [[fallthrough]]. NFC
1 parent 593f6fd commit 5a12f28

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

clang-tools-extra/clangd/CodeCompletionStrings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ void getSignature(const CodeCompletionString &CCS, std::string *Signature,
253253
if (!IncludeFunctionArguments &&
254254
ResultKind == CodeCompletionResult::RK_Declaration)
255255
TruncateSnippetAt.emplace(Snippet->size());
256-
LLVM_FALLTHROUGH;
256+
[[fallthrough]];
257257
case CodeCompletionString::CK_RightParen:
258258
case CodeCompletionString::CK_LeftBracket:
259259
case CodeCompletionString::CK_RightBracket:

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,15 +1869,15 @@ AppleObjCRuntimeV2::DynamicClassInfoExtractor::ComputeHelper(
18691869
if (loader->IsFullyInitialized()) {
18701870
switch (exe_ctx.GetTargetRef().GetDynamicClassInfoHelper()) {
18711871
case eDynamicClassInfoHelperAuto:
1872-
LLVM_FALLTHROUGH;
1872+
[[fallthrough]];
18731873
case eDynamicClassInfoHelperGetRealizedClassList:
18741874
if (m_runtime.m_has_objc_getRealizedClassList_trylock)
18751875
return DynamicClassInfoExtractor::objc_getRealizedClassList_trylock;
1876-
LLVM_FALLTHROUGH;
1876+
[[fallthrough]];
18771877
case eDynamicClassInfoHelperCopyRealizedClassList:
18781878
if (m_runtime.m_has_objc_copyRealizedClassList)
18791879
return DynamicClassInfoExtractor::objc_copyRealizedClassList;
1880-
LLVM_FALLTHROUGH;
1880+
[[fallthrough]];
18811881
case eDynamicClassInfoHelperRealizedClassesStruct:
18821882
return DynamicClassInfoExtractor::gdb_objc_realized_classes;
18831883
}

llvm/include/llvm/IR/GenericConvergenceVerifierImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void GenericConvergenceVerifier<ContextT>::visit(const InstructionT &I) {
7676
"Entry intrinsic cannot be preceded by a convergent operation in the "
7777
"same basic block.",
7878
{Context.print(&I)});
79-
LLVM_FALLTHROUGH;
79+
[[fallthrough]];
8080
case CONV_ANCHOR:
8181
Check(!TokenDef,
8282
"Entry or anchor intrinsic cannot have a convergencectrl token "

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ bool IRTranslator::translateKnownIntrinsic(const CallInst &CI, Intrinsic::ID ID,
22232223
// addresses. We can treat it like a normal dbg_value intrinsic here; to
22242224
// benefit from the full analysis of stack/SSA locations, GlobalISel would
22252225
// need to register for and use the AssignmentTrackingAnalysis pass.
2226-
LLVM_FALLTHROUGH;
2226+
[[fallthrough]];
22272227
case Intrinsic::dbg_value: {
22282228
// This form of DBG_VALUE is target-independent.
22292229
const DbgValueInst &DI = cast<DbgValueInst>(CI);

llvm/lib/CodeGen/SelectionDAG/FastISel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ bool FastISel::selectIntrinsicCall(const IntrinsicInst *II) {
14241424
// happened (such as an optimised function being always-inlined into an
14251425
// optnone function). We will not be using the extra information in the
14261426
// dbg.assign in that case, just use its dbg.value fields.
1427-
LLVM_FALLTHROUGH;
1427+
[[fallthrough]];
14281428
case Intrinsic::dbg_value: {
14291429
// This form of DBG_VALUE is target-independent.
14301430
const DbgValueInst *DI = cast<DbgValueInst>(II);

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3195,7 +3195,7 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
31953195
break;
31963196
}
31973197

3198-
LLVM_FALLTHROUGH;
3198+
[[fallthrough]];
31993199
}
32003200
case ISD::BITCAST:
32013201
if ((Tmp1 = EmitStackConvert(Node->getOperand(0), Node->getValueType(0),

llvm/lib/Support/regcomp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ p_ere_exp(struct parse *p)
538538
break;
539539
case '{': /* okay as ordinary except if digit follows */
540540
REQUIRE(!MORE() || !isdigit((uch)PEEK()), REG_BADRPT);
541-
LLVM_FALLTHROUGH;
541+
[[fallthrough]];
542542
default:
543543
ordinary(p, c);
544544
break;
@@ -734,7 +734,7 @@ p_simp_re(struct parse *p,
734734
break;
735735
case '*':
736736
REQUIRE(starordinary, REG_BADRPT);
737-
LLVM_FALLTHROUGH;
737+
[[fallthrough]];
738738
default:
739739
ordinary(p, (char)c);
740740
break;
@@ -1634,7 +1634,7 @@ findmust(struct parse *p, struct re_guts *g)
16341634
return;
16351635
}
16361636
} while (OP(s) != O_QUEST && OP(s) != O_CH);
1637-
LLVM_FALLTHROUGH;
1637+
[[fallthrough]];
16381638
default: /* things that break a sequence */
16391639
if (newlen > g->mlen) { /* ends one */
16401640
start = newstart;

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ static MachineBasicBlock::iterator InsertSEH(MachineBasicBlock::iterator MBBI,
12961296
}
12971297
case AArch64::LDPQpost:
12981298
Imm = -Imm;
1299-
LLVM_FALLTHROUGH;
1299+
[[fallthrough]];
13001300
case AArch64::STPQpre: {
13011301
unsigned Reg0 = RegInfo->getSEHRegNum(MBBI->getOperand(1).getReg());
13021302
unsigned Reg1 = RegInfo->getSEHRegNum(MBBI->getOperand(2).getReg());

llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,7 @@ void AMDGPURegisterBankInfo::applyMappingImpl(
22612261
case AMDGPU::G_FCMP:
22622262
if (!Subtarget.hasSALUFloatInsts())
22632263
break;
2264-
LLVM_FALLTHROUGH;
2264+
[[fallthrough]];
22652265
case AMDGPU::G_ICMP:
22662266
case AMDGPU::G_UADDO:
22672267
case AMDGPU::G_USUBO:

llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11104,7 +11104,7 @@ ARMAsmParser::checkEarlyTargetMatchPredicate(MCInst &Inst,
1110411104
return Match_MnemonicFail;
1110511105
}
1110611106
}
11107-
LLVM_FALLTHROUGH;
11107+
[[fallthrough]];
1110811108
default:
1110911109
return Match_Success;
1111011110
}

llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9631,7 +9631,7 @@ SDValue SystemZTargetLowering::lowerVECREDUCE_ADD(SDValue Op,
96319631
case 8:
96329632
case 16:
96339633
Op = DAG.getNode(SystemZISD::VSUM, DL, MVT::v4i32, Op, Zero);
9634-
LLVM_FALLTHROUGH;
9634+
[[fallthrough]];
96359635
case 32:
96369636
case 64:
96379637
Op = DAG.getNode(SystemZISD::VSUM, DL, MVT::i128, Op,

llvm/utils/TableGen/DXILEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static ParameterKind getParameterKind(const Record *R) {
9797
if (R->getValueAsInt("isHalfOrFloat") || R->getValueAsInt("isI16OrI32")) {
9898
return ParameterKind::Overload;
9999
}
100-
LLVM_FALLTHROUGH;
100+
[[fallthrough]];
101101
default:
102102
llvm_unreachable("Support for specified DXIL Type not yet implemented");
103103
}
@@ -272,7 +272,7 @@ static std::string getOverloadKindStr(const Record *R) {
272272
return "OverloadKind::I16 | OverloadKind::I32";
273273
}
274274
}
275-
LLVM_FALLTHROUGH;
275+
[[fallthrough]];
276276
default:
277277
llvm_unreachable(
278278
"Support for specified parameter OverloadKind not yet implemented");

0 commit comments

Comments
 (0)