From: Ted Kremenek Date: Wed, 22 Apr 2009 20:51:59 +0000 (+0000) Subject: BugReporter (extensive diagnostics): Use correct location for location contexts. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f5be3b127183f39e055f9cb88a50341d6588025;p=clang BugReporter (extensive diagnostics): Use correct location for location contexts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69824 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index 6872ab622e..73029c5af8 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -791,7 +791,7 @@ class VISIBILITY_HIDDEN EdgeBuilder { if (L.asLocation().isFileID()) { // For contexts, we only one the first character as the range. L = PathDiagnosticLocation(L.asLocation(), L.getManager()); - rawAddEdge(CLocs.back()); + rawAddEdge(L); } CLocs.pop_back(); }