]> granicus.if.org Git - clang/commitdiff
Analysis: Fix example usage comment in CFG.cpp. NFC
authorJonathan Roelofs <jonathan@codesourcery.com>
Mon, 27 Jul 2015 16:05:36 +0000 (16:05 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Mon, 27 Jul 2015 16:05:36 +0000 (16:05 +0000)
Patch by Vedant Kumar!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243275 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFG.cpp

index 73b6fc6c3c871c84e66ff129d6ca4ea1986c849d..07b80edfe69cb90f8a52899983775fd0b1e0af4a 100644 (file)
@@ -284,7 +284,7 @@ reverse_children::reverse_children(Stmt *S) {
 ///   Example usage:
 ///
 ///     CFGBuilder builder;
-///     CFG* cfg = builder.BuildAST(stmt1);
+///     std::unique_ptr<CFG> cfg = builder.buildCFG(decl, stmt1);
 ///
 ///  CFG construction is done via a recursive walk of an AST.  We actually parse
 ///  the AST in reverse order so that the successor of a basic block is