Skip to content

Commit 34b47c9

Browse files
simplify switch-break to if-continue
1 parent f9c6266 commit 34b47c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Transforms/Instrumentation/MemProfUse.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -826,10 +826,7 @@ bool MemProfUsePass::annotateGlobalVariables(
826826
assert(!GVar.getSectionPrefix().has_value() &&
827827
"GVar shouldn't have section prefix yet");
828828
auto Kind = llvm::memprof::getAnnotationKind(GVar);
829-
switch (Kind) {
830-
case llvm::memprof::AnnotationKind::AnnotationOK:
831-
break;
832-
default:
829+
if (Kind != llvm::memprof::AnnotationKind::AnnotationOK) {
833830
HandleUnsupportedAnnotationKinds(GVar, Kind);
834831
continue;
835832
}

0 commit comments

Comments
 (0)