aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-22 20:51:59 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-22 20:51:59 +0000
commit4f5be3b127183f39e055f9cb88a50341d6588025 (patch)
tree9b112595f6f2c826d4f820c97cdc39d705a59344 /lib/Analysis/BugReporter.cpp
parent5c7168cbe8a0eabd05e0e12e469090d2cabd27c0 (diff)
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
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r--lib/Analysis/BugReporter.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}