@@ -573,7 +573,7 @@ static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *E, Address Dest,
573
573
574
574
case AtomicExpr::AO__atomic_add_fetch:
575
575
PostOp = llvm::Instruction::Add;
576
- // Fall through.
576
+ LLVM_FALLTHROUGH;
577
577
case AtomicExpr::AO__c11_atomic_fetch_add:
578
578
case AtomicExpr::AO__opencl_atomic_fetch_add:
579
579
case AtomicExpr::AO__atomic_fetch_add:
@@ -582,7 +582,7 @@ static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *E, Address Dest,
582
582
583
583
case AtomicExpr::AO__atomic_sub_fetch:
584
584
PostOp = llvm::Instruction::Sub;
585
- // Fall through.
585
+ LLVM_FALLTHROUGH;
586
586
case AtomicExpr::AO__c11_atomic_fetch_sub:
587
587
case AtomicExpr::AO__opencl_atomic_fetch_sub:
588
588
case AtomicExpr::AO__atomic_fetch_sub:
@@ -601,7 +601,7 @@ static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *E, Address Dest,
601
601
602
602
case AtomicExpr::AO__atomic_and_fetch:
603
603
PostOp = llvm::Instruction::And;
604
- // Fall through.
604
+ LLVM_FALLTHROUGH;
605
605
case AtomicExpr::AO__c11_atomic_fetch_and:
606
606
case AtomicExpr::AO__opencl_atomic_fetch_and:
607
607
case AtomicExpr::AO__atomic_fetch_and:
@@ -610,7 +610,7 @@ static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *E, Address Dest,
610
610
611
611
case AtomicExpr::AO__atomic_or_fetch:
612
612
PostOp = llvm::Instruction::Or;
613
- // Fall through.
613
+ LLVM_FALLTHROUGH;
614
614
case AtomicExpr::AO__c11_atomic_fetch_or:
615
615
case AtomicExpr::AO__opencl_atomic_fetch_or:
616
616
case AtomicExpr::AO__atomic_fetch_or:
@@ -619,7 +619,7 @@ static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *E, Address Dest,
619
619
620
620
case AtomicExpr::AO__atomic_xor_fetch:
621
621
PostOp = llvm::Instruction::Xor;
622
- // Fall through.
622
+ LLVM_FALLTHROUGH;
623
623
case AtomicExpr::AO__c11_atomic_fetch_xor:
624
624
case AtomicExpr::AO__opencl_atomic_fetch_xor:
625
625
case AtomicExpr::AO__atomic_fetch_xor:
@@ -628,7 +628,7 @@ static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *E, Address Dest,
628
628
629
629
case AtomicExpr::AO__atomic_nand_fetch:
630
630
PostOp = llvm::Instruction::And; // the NOT is special cased below
631
- // Fall through.
631
+ LLVM_FALLTHROUGH;
632
632
case AtomicExpr::AO__atomic_fetch_nand:
633
633
Op = llvm::AtomicRMWInst::Nand;
634
634
break ;
@@ -828,7 +828,7 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
828
828
EmitStoreOfScalar (Val1Scalar, MakeAddrLValue (Temp, Val1Ty));
829
829
break ;
830
830
}
831
- // Fall through.
831
+ LLVM_FALLTHROUGH;
832
832
case AtomicExpr::AO__atomic_fetch_add:
833
833
case AtomicExpr::AO__atomic_fetch_sub:
834
834
case AtomicExpr::AO__atomic_add_fetch:
@@ -1035,7 +1035,7 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
1035
1035
// T __atomic_fetch_add_N(T *mem, T val, int order)
1036
1036
case AtomicExpr::AO__atomic_add_fetch:
1037
1037
PostOp = llvm::Instruction::Add;
1038
- // Fall through.
1038
+ LLVM_FALLTHROUGH;
1039
1039
case AtomicExpr::AO__c11_atomic_fetch_add:
1040
1040
case AtomicExpr::AO__opencl_atomic_fetch_add:
1041
1041
case AtomicExpr::AO__atomic_fetch_add:
@@ -1047,7 +1047,7 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
1047
1047
// T __atomic_fetch_and_N(T *mem, T val, int order)
1048
1048
case AtomicExpr::AO__atomic_and_fetch:
1049
1049
PostOp = llvm::Instruction::And;
1050
- // Fall through.
1050
+ LLVM_FALLTHROUGH;
1051
1051
case AtomicExpr::AO__c11_atomic_fetch_and:
1052
1052
case AtomicExpr::AO__opencl_atomic_fetch_and:
1053
1053
case AtomicExpr::AO__atomic_fetch_and:
@@ -1059,7 +1059,7 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
1059
1059
// T __atomic_fetch_or_N(T *mem, T val, int order)
1060
1060
case AtomicExpr::AO__atomic_or_fetch:
1061
1061
PostOp = llvm::Instruction::Or;
1062
- // Fall through.
1062
+ LLVM_FALLTHROUGH;
1063
1063
case AtomicExpr::AO__c11_atomic_fetch_or:
1064
1064
case AtomicExpr::AO__opencl_atomic_fetch_or:
1065
1065
case AtomicExpr::AO__atomic_fetch_or:
@@ -1071,7 +1071,7 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
1071
1071
// T __atomic_fetch_sub_N(T *mem, T val, int order)
1072
1072
case AtomicExpr::AO__atomic_sub_fetch:
1073
1073
PostOp = llvm::Instruction::Sub;
1074
- // Fall through.
1074
+ LLVM_FALLTHROUGH;
1075
1075
case AtomicExpr::AO__c11_atomic_fetch_sub:
1076
1076
case AtomicExpr::AO__opencl_atomic_fetch_sub:
1077
1077
case AtomicExpr::AO__atomic_fetch_sub:
@@ -1083,7 +1083,7 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
1083
1083
// T __atomic_fetch_xor_N(T *mem, T val, int order)
1084
1084
case AtomicExpr::AO__atomic_xor_fetch:
1085
1085
PostOp = llvm::Instruction::Xor;
1086
- // Fall through.
1086
+ LLVM_FALLTHROUGH;
1087
1087
case AtomicExpr::AO__c11_atomic_fetch_xor:
1088
1088
case AtomicExpr::AO__opencl_atomic_fetch_xor:
1089
1089
case AtomicExpr::AO__atomic_fetch_xor:
@@ -1109,7 +1109,7 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
1109
1109
// T __atomic_fetch_nand_N(T *mem, T val, int order)
1110
1110
case AtomicExpr::AO__atomic_nand_fetch:
1111
1111
PostOp = llvm::Instruction::And; // the NOT is special cased below
1112
- // Fall through.
1112
+ LLVM_FALLTHROUGH;
1113
1113
case AtomicExpr::AO__atomic_fetch_nand:
1114
1114
LibCallName = " __atomic_fetch_nand" ;
1115
1115
AddDirectArgument (*this , Args, UseOptimizedLibcall, Val1.getPointer (),
0 commit comments