Skip to content

Commit b7593b2

Browse files
authored
[NFC][Doc] Fix typo in new pass manager snippet (#87765)
Add missing closing parenthesis and re-flow the snippet to what clang format would generate.
1 parent 68b939f commit b7593b2

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)