diff options
author | Galina Kistanova <gkistanova@gmail.com> | 2017-05-31 20:25:13 +0000 |
---|---|---|
committer | Galina Kistanova <gkistanova@gmail.com> | 2017-05-31 20:25:13 +0000 |
commit | c2b642d009cff1cc7c0ed3197ddd999dd9c61ef3 (patch) | |
tree | 31830f8e70fab917a65627111a3a134106f5a5cc /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | 969c6512c277ffca58d691322db7f61be4006458 (diff) | |
download | bcm5719-llvm-c2b642d009cff1cc7c0ed3197ddd999dd9c61ef3.tar.gz bcm5719-llvm-c2b642d009cff1cc7c0ed3197ddd999dd9c61ef3.zip |
Added missing break; added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.
llvm-svn: 304340
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 79517ec6a3a..6a1af87450c 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -1739,6 +1739,7 @@ Constant *ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID, Type *Ty, if ((Name == "round" && TLI->has(LibFunc_round)) || (Name == "roundf" && TLI->has(LibFunc_roundf))) return ConstantFoldFP(round, V, Ty); + break; case 's': if ((Name == "sin" && TLI->has(LibFunc_sin)) || (Name == "sinf" && TLI->has(LibFunc_sinf))) @@ -1807,6 +1808,7 @@ Constant *ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID, Type *Ty, dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U))) return ConstantFoldSSEConvertToInt(FPOp->getValueAPF(), /*roundTowardZero=*/false, Ty); + LLVM_FALLTHROUGH; case Intrinsic::x86_sse_cvttss2si: case Intrinsic::x86_sse_cvttss2si64: case Intrinsic::x86_sse2_cvttsd2si: |