[cfe-commits] r41890 - /cfe/trunk/Analysis/LiveVariables.cpp

Ted Kremenek kremenek at apple.com
Wed Sep 12 13:28:50 PDT 2007


Author: kremenek
Date: Wed Sep 12 15:28:48 2007
New Revision: 41890

URL: http://llvm.org/viewvc/llvm-project?rev=41890&view=rev
Log:
Minor space tightening.
Removed extraneous call to Observer->ObserveStmt when handling DeclRefExprs.

Modified:
    cfe/trunk/Analysis/LiveVariables.cpp

Modified: cfe/trunk/Analysis/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/LiveVariables.cpp?rev=41890&r1=41889&r2=41890&view=diff

==============================================================================
--- cfe/trunk/Analysis/LiveVariables.cpp (original)
+++ cfe/trunk/Analysis/LiveVariables.cpp Wed Sep 12 15:28:48 2007
@@ -170,7 +170,7 @@
     case UnaryOperator::PostDec:
     case UnaryOperator::PreInc:
     case UnaryOperator::PreDec:
-        case UnaryOperator::AddrOf:
+    case UnaryOperator::AddrOf:
       // Walk through the subexpressions, blasting through ParenExprs until
       // we either find a DeclRefExpr or some non-DeclRefExpr expression.
       for (Stmt* S = U->getSubExpr() ; ; ) {
@@ -188,8 +188,7 @@
         
           VisitDeclRefExpr(DR);          
         }
-        else
-          Visit(S);
+        else Visit(S);
           
         break;                  
       }        
@@ -237,9 +236,6 @@
 }
 
 void LivenessTFuncs::VisitDeclStmt(DeclStmt* DS) {
-  if (Observer)
-    Observer->ObserveStmt(DS,L,Live);
-    
   // Declarations effectively "kill" a variable since they cannot possibly
   // be live before they are declared.  Declarations, however, are not kills
   // in the sense that the value is obliterated, so we do not register





More information about the cfe-commits mailing list