Skip to content

Commit aa08165

Browse files
author
git apple-llvm automerger
committed
Merge commit 'b7593b2e925f' from llvm.org/main into next
2 parents 2c6bdb0 + b7593b2 commit aa08165

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/docs/NewPassManager.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ certain parts of the pipeline. For example,
162162
.. code-block:: c++
163163

164164
PassBuilder PB;
165-
PB.registerPipelineStartEPCallback([&](ModulePassManager &MPM,
166-
PassBuilder::OptimizationLevel Level) {
167-
MPM.addPass(FooPass());
168-
};
165+
PB.registerPipelineStartEPCallback(
166+
[&](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) {
167+
MPM.addPass(FooPass());
168+
});
169169

170170
will add ``FooPass`` near the very beginning of the pipeline for pass
171171
managers created by that ``PassBuilder``. See the documentation for

0 commit comments

Comments
 (0)