[llvm] c0cb758 - [Annotation2Metadata] Fix returned PreservedAnalyses
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 16 09:42:25 PDT 2023
Author: Arthur Eubanks
Date: 2023-03-16T09:42:09-07:00
New Revision: c0cb758ebd71f4e8d1a0581698f327ea308f820c
URL: https://github.com/llvm/llvm-project/commit/c0cb758ebd71f4e8d1a0581698f327ea308f820c
DIFF: https://github.com/llvm/llvm-project/commit/c0cb758ebd71f4e8d1a0581698f327ea308f820c.diff
LOG: [Annotation2Metadata] Fix returned PreservedAnalyses
Added:
Modified:
llvm/lib/Transforms/IPO/Annotation2Metadata.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Annotation2Metadata.cpp b/llvm/lib/Transforms/IPO/Annotation2Metadata.cpp
index 7156e65f45a5..a2649be8e490 100644
--- a/llvm/lib/Transforms/IPO/Annotation2Metadata.cpp
+++ b/llvm/lib/Transforms/IPO/Annotation2Metadata.cpp
@@ -66,6 +66,6 @@ static bool convertAnnotation2Metadata(Module &M) {
PreservedAnalyses Annotation2MetadataPass::run(Module &M,
ModuleAnalysisManager &AM) {
- convertAnnotation2Metadata(M);
- return PreservedAnalyses::all();
+ return convertAnnotation2Metadata(M) ? PreservedAnalyses::none()
+ : PreservedAnalyses::all();
}
More information about the llvm-commits
mailing list