diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-01 23:13:35 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-01 23:13:35 +0000 |
commit | c9fa2f7bcc3061aa8bcdbe0df26d2c7cf7281539 (patch) | |
tree | e93a22d8f23f4d41b3d2d0b600cdec4c43052ea9 /lib/Analysis/BugReporter.cpp | |
parent | bb77e9b908658b354b058509d3801f3aed052bec (diff) |
Added line number diagnostics to indicate the allocation site of the leaked object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index 785e4cf4ae..0ec1a35b68 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -112,10 +112,8 @@ BugReport::getEndPath(BugReporter& BR, if (!S) return NULL; - FullSourceLoc L(S->getLocStart(), BR.getContext().getSourceManager()); - - PathDiagnosticPiece* P = - new PathDiagnosticPiece(L, getDescription()); + FullSourceLoc L(S->getLocStart(), BR.getContext().getSourceManager()); + PathDiagnosticPiece* P = new PathDiagnosticPiece(L, getDescription()); const SourceRange *Beg, *End; getRanges(BR, Beg, End); |