diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-22 20:51:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-22 20:51:59 +0000 |
commit | 48b7875e5521044006d931ef09b8cb0fcb62c1bf (patch) | |
tree | d6ec3eecd5413aa9e1d34c7f57435c4038340fc5 /clang/lib/Analysis/BugReporter.cpp | |
parent | fb05406cefd5d3b98c10afaa5a3b309eb8db8eb4 (diff) | |
download | bcm5719-llvm-48b7875e5521044006d931ef09b8cb0fcb62c1bf.tar.gz bcm5719-llvm-48b7875e5521044006d931ef09b8cb0fcb62c1bf.zip |
BugReporter (extensive diagnostics): Use correct location for location contexts.
llvm-svn: 69824
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 2 |
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(); } |