aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-31 18:44:32 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-31 18:44:32 +0000
commit5297e5ffc517c08cd8a0bfc53d09e538d7e667a3 (patch)
tree156cb5b6e32547e2b2b3dcc0a1df6023f9fe3840
parent4dc41cc8de3a915d8dfb3b02d91304a3975aa3ca (diff)
Include ranges in GRSimpleVals diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48990 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/GRSimpleVals.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp
index a6aba83db2..fdb3ecdf73 100644
--- a/lib/Analysis/GRSimpleVals.cpp
+++ b/lib/Analysis/GRSimpleVals.cpp
@@ -51,7 +51,9 @@ static void EmitDiag(Diagnostic& Diag, PathDiagnosticClient* PD,
unsigned ErrorDiag, ITERATOR I) {
Stmt* S = GetStmt(GetLocation(I));
- Diag.Report(PD, FullSourceLoc(S->getLocStart(), SrcMgr), ErrorDiag);
+ SourceRange R = S->getSourceRange();
+ Diag.Report(PD, FullSourceLoc(S->getLocStart(), SrcMgr), ErrorDiag,
+ NULL, 0, &R, 1);
}