Commit 6b8a1425 authored by Arthur Eubanks's avatar Arthur Eubanks
Browse files

[docs][NewPM] Add comment about declaring analysis managers in the correct order

Otherwise you will likely get crashes.
parent 30520cdf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ Just Tell Me How To Run The Default Optimization Pipeline With The New Pass Mana
.. code-block:: c++

  // Create the analysis managers.
  // These must be declared in this order so that they are destroyed in the
  // correct order due to inter-analysis-manager references.
  LoopAnalysisManager LAM;
  FunctionAnalysisManager FAM;
  CGSCCAnalysisManager CGAM;