From: Simon Pilgrim Date: Sun, 18 Sep 2016 21:08:35 +0000 (+0000) Subject: Fix covered-switch-default warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ae8b034ab91ffc56fdaf8f5cff330ca0850030;p=llvm Fix covered-switch-default warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281865 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index 8f556683c35..bff155c1d67 100644 --- a/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -983,14 +983,13 @@ void SelectInstVisitor::visitSelectInst(SelectInst &SI) { return; case VM_instrument: instrumentOneSelectInst(SI); - break; + return; case VM_annotate: annotateOneSelectInst(SI); - break; - default: - llvm_unreachable("Unknown visiting mode"); - break; + return; } + + llvm_unreachable("Unknown visiting mode"); } // Traverse all the indirect callsites and annotate the instructions.