summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Analysis/GRSimpleVals.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Analysis/GRSimpleVals.cpp b/clang/lib/Analysis/GRSimpleVals.cpp
index a6aba83db27..fdb3ecdf739 100644
--- a/clang/lib/Analysis/GRSimpleVals.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud