summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-01 23:13:35 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-01 23:13:35 +0000
commit1097b4c61f097daf60d0b8a8854fffdf37012150 (patch)
tree0926f2621e464f2b4fb77e390ef4cb9026328f54 /clang/lib/Analysis/BugReporter.cpp
parentfabfb4677ddd338c8477504b40c31a7cb124fa50 (diff)
downloadbcm5719-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.cpp6
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);
OpenPOWER on IntegriCloud