aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}