Refactor Dead Stores error reporting to use the simplified BugReporter::EmitBasicReport interface.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53573 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp
index cbd61f8..ed17c9d 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -767,14 +767,15 @@
 
 void
 BugReporter::EmitBasicReport(const char* name, const char* str,
-                             SourceLocation Loc) {
+                             SourceLocation Loc,
+                             SourceRange* RBeg, unsigned NumRanges) {
   
   SimpleBugType BT(name);
   DiagCollector C(BT);
   Diagnostic& Diag = getDiagnostic();
   Diag.Report(&C, getContext().getFullLoc(Loc),
               Diag.getCustomDiagID(Diagnostic::Warning, str),
-              0, 0, 0, 0);
+              0, 0, RBeg, NumRanges);
   
   for (DiagCollector::iterator I = C.begin(), E = C.end(); I != E; ++I)
     EmitWarning(*I);