]> granicus.if.org Git - clang/commitdiff
Minor space tightening.
authorTed Kremenek <kremenek@apple.com>
Wed, 12 Sep 2007 20:28:48 +0000 (20:28 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 12 Sep 2007 20:28:48 +0000 (20:28 +0000)
Removed extraneous call to Observer->ObserveStmt when handling DeclRefExprs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41890 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/LiveVariables.cpp

index 8e6c6e0555c65124c860352a367da371e01f8afb..ab5c552af736acb88e29d83bbce5a64c4475a4c1 100644 (file)
@@ -170,7 +170,7 @@ void LivenessTFuncs::VisitUnaryOperator(UnaryOperator* U) {
     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 @@ void LivenessTFuncs::VisitUnaryOperator(UnaryOperator* U) {
         
           VisitDeclRefExpr(DR);          
         }
-        else
-          Visit(S);
+        else Visit(S);
           
         break;                  
       }        
@@ -237,9 +236,6 @@ void LivenessTFuncs::VisitAssign(BinaryOperator* B) {
 }
 
 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