diff --git a/llvm/docs/NewPassManager.rst b/llvm/docs/NewPassManager.rst --- a/llvm/docs/NewPassManager.rst +++ b/llvm/docs/NewPassManager.rst @@ -63,7 +63,7 @@ // InstSimplifyPass is a function pass FPM.addPass(InstSimplifyPass()); -If you want add a loop pass that runs on all loops in a function to a +If you want to add a loop pass that runs on all loops in a function to a ``FunctionPassManager``, the loop pass must be wrapped in a function pass adaptor that goes through all the loops in the function and runs the loop pass on each one.