[cfe-commits] r48990 - /cfe/trunk/lib/Analysis/GRSimpleVals.cpp
Ted Kremenek
kremenek at apple.com
Mon Mar 31 11:44:32 PDT 2008
Author: kremenek
Date: Mon Mar 31 13:44:32 2008
New Revision: 48990
URL: http://llvm.org/viewvc/llvm-project?rev=48990&view=rev
Log:
Include ranges in GRSimpleVals diagnostics.
Modified:
cfe/trunk/lib/Analysis/GRSimpleVals.cpp
Modified: cfe/trunk/lib/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRSimpleVals.cpp?rev=48990&r1=48989&r2=48990&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/lib/Analysis/GRSimpleVals.cpp Mon Mar 31 13:44:32 2008
@@ -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);
}
More information about the cfe-commits
mailing list