From b9ae8b034ab91ffc56fdaf8f5cff330ca0850030 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 18 Sep 2016 21:08:35 +0000 Subject: [PATCH] Fix covered-switch-default warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281865 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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. -- 2.50.1