Include ranges in GRSimpleVals diagnostics.

llvm-svn: 48990
This commit is contained in:
Ted Kremenek 2008-03-31 18:44:32 +00:00
parent c27815ca82
commit bb7f03f926
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}