We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c6266 commit 34b47c9Copy full SHA for 34b47c9
llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
@@ -826,10 +826,7 @@ bool MemProfUsePass::annotateGlobalVariables(
826
assert(!GVar.getSectionPrefix().has_value() &&
827
"GVar shouldn't have section prefix yet");
828
auto Kind = llvm::memprof::getAnnotationKind(GVar);
829
- switch (Kind) {
830
- case llvm::memprof::AnnotationKind::AnnotationOK:
831
- break;
832
- default:
+ if (Kind != llvm::memprof::AnnotationKind::AnnotationOK) {
833
HandleUnsupportedAnnotationKinds(GVar, Kind);
834
continue;
835
}
0 commit comments