diff --git a/clang/lib/Analysis/GRSimpleVals.cpp b/clang/lib/Analysis/GRSimpleVals.cpp index a6aba83db277..fdb3ecdf7397 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); }