diff --git a/llvm/lib/Transforms/Scalar/LoopFlatten.cpp b/llvm/lib/Transforms/Scalar/LoopFlatten.cpp --- a/llvm/lib/Transforms/Scalar/LoopFlatten.cpp +++ b/llvm/lib/Transforms/Scalar/LoopFlatten.cpp @@ -815,7 +815,7 @@ if (!Changed) return PreservedAnalyses::all(); - return PreservedAnalyses::none(); + return getLoopPassPreservedAnalyses(); } namespace {