Skip to content

Commit

Permalink
Added LLVM_FALLTHROUGH to address warning: this statement may fall th…
Browse files Browse the repository at this point in the history
…rough. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304635 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gkistanova committed Jun 3, 2017
1 parent 4efa61f commit 4c20f52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) {
}
return TranslateLegalizeResults(Op, Lowered);
}
LLVM_FALLTHROUGH;
case TargetLowering::Expand:
Changed = true;
return LegalizeOp(ExpandLoad(Op));
Expand Down
2 changes: 2 additions & 0 deletions lib/CodeGen/TargetLoweringBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,7 @@ void TargetLoweringBase::computeRegisterProperties(
}
if (IsLegalWiderType)
break;
LLVM_FALLTHROUGH;
}
case TypeWidenVector: {
// Try to widen the vector.
Expand All @@ -1473,6 +1474,7 @@ void TargetLoweringBase::computeRegisterProperties(
}
if (IsLegalWiderType)
break;
LLVM_FALLTHROUGH;
}
case TypeSplitVector:
case TypeScalarizeVector: {
Expand Down

0 comments on commit 4c20f52

Please sign in to comment.