Removed some commented code.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68495 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp
index 995833a..01f5e81 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -949,11 +949,6 @@
       return;
 
     if (containsLocation(TopContextLoc, L)) {
-    // /  if (const Stmt *S = L.asStmt())
-    //     if (isa<Expr>(S))
-    //       if (const Stmt *P = PDB.getParent(S))
-    //         addContext(PDB.getEnclosingStmtLocation(P).asStmt());
-      
       CLocs.push_back(L);
       return;      
     }
@@ -974,7 +969,6 @@
 
   const ExplodedNode<GRState>* NextNode = N->pred_empty() 
                                         ? NULL : *(N->pred_begin());
-
   while (NextNode) {
     N = NextNode;
     NextNode = GetPredecessorNode(N);
@@ -987,13 +981,6 @@
       if (const Stmt *Term = Blk.getTerminator())
         EB.addContext(Term);
 
-      // Only handle blocks with more than 1 statement here, as the blocks
-      // with one statement are handled at BlockEntrances.
-//      if (Blk.size() > 1) {
-//        const Stmt *S = *Blk.rbegin();
-//        EB.addEdge(S);
-//      }
-
       continue;
     }
 
@@ -1002,15 +989,15 @@
        if (IsControlFlowExpr(S))
          EB.addContext(S);
        else
-        EB.addEdge(S);
+         EB.addContext(PDB.getEnclosingStmtLocation(S).asStmt());
       }
 
       continue;
     }
     
     PathDiagnosticPiece* p =
-    PDB.getReport().VisitNode(N, NextNode, PDB.getGraph(),
-                              PDB.getBugReporter(), PDB.getNodeMapClosure());
+      PDB.getReport().VisitNode(N, NextNode, PDB.getGraph(),
+                                PDB.getBugReporter(), PDB.getNodeMapClosure());
     
     if (p) {
       EB.addEdge(p->getLocation(), true);