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 | 1097b4c61f097daf60d0b8a8854fffdf37012150 (patch) | |
tree | 0926f2621e464f2b4fb77e390ef4cb9026328f54 /clang/lib/Analysis/BugReporter.cpp | |
parent | fabfb4677ddd338c8477504b40c31a7cb124fa50 (diff) | |
download | bcm5719-llvm-1097b4c61f097daf60d0b8a8854fffdf37012150.tar.gz bcm5719-llvm-1097b4c61f097daf60d0b8a8854fffdf37012150.zip |
Added line number diagnostics to indicate the allocation site of the leaked object.
llvm-svn: 50553
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index 785e4cf4ae7..0ec1a35b681 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/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); |