]> granicus.if.org Git - llvm/commitdiff
Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.
authorGalina Kistanova <gkistanova@gmail.com>
Sat, 3 Jun 2017 05:11:14 +0000 (05:11 +0000)
committerGalina Kistanova <gkistanova@gmail.com>
Sat, 3 Jun 2017 05:11:14 +0000 (05:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304635 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
lib/CodeGen/TargetLoweringBase.cpp

index 5f167f8de1cfc55da1a6d539741da241b65dc0fe..9355dbe77f94e31a81c77641732bac6e42e83331 100644 (file)
@@ -225,6 +225,7 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) {
           }
           return TranslateLegalizeResults(Op, Lowered);
         }
+        LLVM_FALLTHROUGH;
       case TargetLowering::Expand:
         Changed = true;
         return LegalizeOp(ExpandLoad(Op));
index 900c0318b179abc9cda77da991afc1ac93231ee5..c43a5e18ad23fd280639a245e319d40d1f39c3df 100644 (file)
@@ -1456,6 +1456,7 @@ void TargetLoweringBase::computeRegisterProperties(
       }
       if (IsLegalWiderType)
         break;
+      LLVM_FALLTHROUGH;
     }
     case TypeWidenVector: {
       // Try to widen the vector.
@@ -1473,6 +1474,7 @@ void TargetLoweringBase::computeRegisterProperties(
       }
       if (IsLegalWiderType)
         break;
+      LLVM_FALLTHROUGH;
     }
     case TypeSplitVector:
     case TypeScalarizeVector: {