From 4f5be3b127183f39e055f9cb88a50341d6588025 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 22 Apr 2009 20:51:59 +0000 Subject: [PATCH] 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 --- lib/Analysis/BugReporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.40.0