]> granicus.if.org Git - clang/commitdiff
Include ranges in GRSimpleVals diagnostics.
authorTed Kremenek <kremenek@apple.com>
Mon, 31 Mar 2008 18:44:32 +0000 (18:44 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 31 Mar 2008 18:44:32 +0000 (18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48990 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRSimpleVals.cpp

index a6aba83db2776be08b4864320619e266c11e4258..fdb3ecdf73971649eee63ac18e0d4787257df264 100644 (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);    
 }