mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 04:16:08 +00:00
[docs][NewPM] Add comment about declaring analysis managers in the correct order
Otherwise you will likely get crashes.
This commit is contained in:
parent
30520cdff6
commit
6b8a1425ea
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user