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 6872ab6..73029c5 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -791,7 +791,7 @@
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();
}