summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Analysis/BugReporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index 6872ab622ea..73029c5af8d 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud