Skip to content

Commit 76739d1

Browse files
committed
[clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC
Remove unneeded LLVM_FALLTHROUGH added after https://reviews.llvm.org/D131346
1 parent 2c0a185 commit 76739d1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3628,7 +3628,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
36283628
// frexpl instead of legalizing this type in the BE.
36293629
if (&getTarget().getLongDoubleFormat() == &llvm::APFloat::PPCDoubleDouble())
36303630
break;
3631-
LLVM_FALLTHROUGH;
3631+
[[fallthrough]];
36323632
}
36333633
case Builtin::BI__builtin_frexp:
36343634
case Builtin::BI__builtin_frexpf:
@@ -5366,7 +5366,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
53665366
case Builtin::BI__builtin_ptrauth_auth_and_resign:
53675367
if (Args[4]->getType()->isPointerTy())
53685368
Args[4] = Builder.CreatePtrToInt(Args[4], IntPtrTy);
5369-
LLVM_FALLTHROUGH;
5369+
[[fallthrough]];
53705370

53715371
case Builtin::BI__builtin_ptrauth_auth:
53725372
case Builtin::BI__builtin_ptrauth_sign_unauthenticated:
@@ -18850,7 +18850,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
1885018850
case AMDGPU::BI__builtin_amdgcn_wmma_f16_16x16x16_f16_w32_gfx12:
1885118851
case AMDGPU::BI__builtin_amdgcn_wmma_f16_16x16x16_f16_w64_gfx12:
1885218852
AppendFalseForOpselArg = true;
18853-
LLVM_FALLTHROUGH;
18853+
[[fallthrough]];
1885418854
case AMDGPU::BI__builtin_amdgcn_wmma_f16_16x16x16_f16_w32:
1885518855
case AMDGPU::BI__builtin_amdgcn_wmma_f16_16x16x16_f16_w64:
1885618856
ArgsForMatchingMatrixTypes = {2, 0}; // CD, AB
@@ -18859,7 +18859,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
1885918859
case AMDGPU::BI__builtin_amdgcn_wmma_bf16_16x16x16_bf16_w32_gfx12:
1886018860
case AMDGPU::BI__builtin_amdgcn_wmma_bf16_16x16x16_bf16_w64_gfx12:
1886118861
AppendFalseForOpselArg = true;
18862-
LLVM_FALLTHROUGH;
18862+
[[fallthrough]];
1886318863
case AMDGPU::BI__builtin_amdgcn_wmma_bf16_16x16x16_bf16_w32:
1886418864
case AMDGPU::BI__builtin_amdgcn_wmma_bf16_16x16x16_bf16_w64:
1886518865
ArgsForMatchingMatrixTypes = {2, 0}; // CD, AB

clang/lib/CodeGen/CodeGenTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) {
409409
break;
410410
case BuiltinType::LongDouble:
411411
LongDoubleReferenced = true;
412-
LLVM_FALLTHROUGH;
412+
[[fallthrough]];
413413
case BuiltinType::BFloat16:
414414
case BuiltinType::Float:
415415
case BuiltinType::Double:

clang/lib/Parse/ParseOpenACC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ OpenACCReductionOperator ParseReductionOperator(Parser &P) {
327327
return OpenACCReductionOperator::Max;
328328
if (ReductionKindTok.getIdentifierInfo()->isStr("min"))
329329
return OpenACCReductionOperator::Min;
330-
LLVM_FALLTHROUGH;
330+
[[fallthrough]];
331331
default:
332332
P.Diag(ReductionKindTok, diag::err_acc_invalid_reduction_operator);
333333
return OpenACCReductionOperator::Invalid;
@@ -945,7 +945,7 @@ Parser::OpenACCClauseParseResult Parser::ParseOpenACCClauseParams(
945945
// the 'update' clause, so we have to handle it here. U se an assert to
946946
// make sure we get the right differentiator.
947947
assert(DirKind == OpenACCDirectiveKind::Update);
948-
LLVM_FALLTHROUGH;
948+
[[fallthrough]];
949949
case OpenACCClauseKind::Attach:
950950
case OpenACCClauseKind::Copy:
951951
case OpenACCClauseKind::Delete:

0 commit comments

Comments
 (0)