diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-29 18:53:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-29 18:53:26 +0000 |
commit | c2cb99d6f15c283c2ea66cc8520f612f97b3851d (patch) | |
tree | e0b754b77e12d85fbd8108ecaa922ef30e5373c4 /docs/InternalsManual.rst | |
parent | 6c274d43630e469c4adb988c951ca6047e637cb5 (diff) |
unique_ptrify the result of CFG::buildCFG/CFGBuilder::buildCFG
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/InternalsManual.rst')
-rw-r--r-- | docs/InternalsManual.rst | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/InternalsManual.rst b/docs/InternalsManual.rst index 8e047dbdae..50a1943ee2 100644 --- a/docs/InternalsManual.rst +++ b/docs/InternalsManual.rst @@ -1396,10 +1396,7 @@ body by single call to a static class method: .. code-block:: c++ Stmt *FooBody = ... - CFG *FooCFG = CFG::buildCFG(FooBody); - -It is the responsibility of the caller of ``CFG::buildCFG`` to ``delete`` the -returned ``CFG*`` when the CFG is no longer needed. + std::unique_ptr<CFG> FooCFG = CFG::buildCFG(FooBody); Along with providing an interface to iterate over its ``CFGBlocks``, the ``CFG`` class also provides methods that are useful for debugging and |