diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index 8f556683c35..bff155c1d67 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/llvm/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. |

