Include ranges in GRSimpleVals diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48990 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp
index a6aba83..fdb3ecd 100644
--- a/lib/Analysis/GRSimpleVals.cpp
+++ b/lib/Analysis/GRSimpleVals.cpp
@@ -51,7 +51,9 @@
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);
}