From c9fa2f7bcc3061aa8bcdbe0df26d2c7cf7281539 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 1 May 2008 23:13:35 +0000 Subject: 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 --- lib/Analysis/BugReporter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/Analysis/BugReporter.cpp') 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); -- cgit v1.2.3-18-g5258