diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-12-19 22:05:25 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-12-19 22:05:25 +0000 |
commit | c0ade050e0b8470f63a10a73d37f20eb3c3f10d7 (patch) | |
tree | cc09ad0f685843bc8dbc310118705680e9900e88 /lib/Transforms/IPO | |
parent | 235e856f64fa11b75034f473ea0f37f173bd9c39 (diff) |
Silence a bunch of implicit fallthrough warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/PartialInlining.cpp | 1 | ||||
-rw-r--r-- | lib/Transforms/IPO/WholeProgramDevirt.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/PartialInlining.cpp b/lib/Transforms/IPO/PartialInlining.cpp index 683655f1f68..5f5b7be3c20 100644 --- a/lib/Transforms/IPO/PartialInlining.cpp +++ b/lib/Transforms/IPO/PartialInlining.cpp @@ -863,6 +863,7 @@ int PartialInlinerImpl::computeBBInlineCost(BasicBlock *BB) { case Instruction::GetElementPtr: if (cast<GetElementPtrInst>(I)->hasAllZeroIndices()) continue; + break; default: break; } diff --git a/lib/Transforms/IPO/WholeProgramDevirt.cpp b/lib/Transforms/IPO/WholeProgramDevirt.cpp index ec56f0cde25..5fbb001216a 100644 --- a/lib/Transforms/IPO/WholeProgramDevirt.cpp +++ b/lib/Transforms/IPO/WholeProgramDevirt.cpp @@ -1346,6 +1346,7 @@ void DevirtModule::importResolution(VTableSlot Slot, VTableSlotInfo &SlotInfo) { Constant *Bit = importConstant(Slot, CSByConstantArg.first, "bit", Int8Ty, ResByArg.Bit); applyVirtualConstProp(CSByConstantArg.second, "", Byte, Bit); + break; } default: break; |