]> granicus.if.org Git - clang/commitdiff
BugReporter (extensive diagnostics): Use correct location for location contexts.
authorTed Kremenek <kremenek@apple.com>
Wed, 22 Apr 2009 20:51:59 +0000 (20:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 22 Apr 2009 20:51:59 +0000 (20:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69824 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BugReporter.cpp

index 6872ab622ea8740ce1cd17d409d349458709c8de..73029c5af8dbcbac6d3c9ae88a9b89ab80098d74 100644 (file)
@@ -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();
   }