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