]> granicus.if.org Git - clang/commitdiff
Always print out the function we're analyzing.
authorTed Kremenek <kremenek@apple.com>
Thu, 28 Aug 2008 18:34:41 +0000 (18:34 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 28 Aug 2008 18:34:41 +0000 (18:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55488 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/AnalysisConsumer.cpp

index 0a59797549e4e3b215a7c8a2c975e44e944c300a..83ad624179a298f91ae44d193046fe221e92467e 100644 (file)
@@ -322,8 +322,7 @@ static void ActionGRExprEngine(AnalysisManager& mgr, GRTransferFuncs* tf,
   if (!L) return;
   
   // Display progress.
-  if (!mgr.shouldVisualize())
-    mgr.DisplayFunction();
+  mgr.DisplayFunction();
   
   GRExprEngine Eng(*mgr.getCFG(), *mgr.getCodeDecl(), mgr.getContext(), *L);
   Eng.setTransferFunctions(tf);
@@ -515,6 +514,9 @@ static ExplodedNodeImpl::Auditor* CreateUbiViz() {
 }
 
 void UbigraphViz::AddEdge(ExplodedNodeImpl* Src, ExplodedNodeImpl* Dst) {
+  
+  assert (Src != Dst && "Self-edges are not allowed.");
+  
   // Lookup the Src.  If it is a new node, it's a root.
   VMap::iterator SrcI= M.find(Src);
   unsigned SrcID;