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 @@ -682,9 +682,7 @@ if (!Flatten(DT, LI, SE, AC, TTI)) return PreservedAnalyses::all(); - PreservedAnalyses PA; - PA.preserveSet(); - return PA; + return PreservedAnalyses::none(); } namespace {