From e94b59ee75b2bbef330d4ea9d06e87b51ddfd0e3 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Wed, 15 Mar 2023 11:45:25 -0700 Subject: [Debugify/Strip] Fix returned PreservedAnalyses --- llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp') diff --git a/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp b/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp index 01aa6d1..65b5402 100644 --- a/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp +++ b/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp @@ -17,5 +17,7 @@ using namespace llvm; PreservedAnalyses StripNonLineTableDebugInfoPass::run(Module &M, ModuleAnalysisManager &AM) { llvm::stripNonLineTableDebugInfo(M); - return PreservedAnalyses::all(); + PreservedAnalyses PA; + PA.preserveSet(); + return PA; } -- cgit v1.1