]> granicus.if.org Git - clang/commitdiff
Fixed recursion bug: should call Visit on child instead of VisitStmt.
authorTed Kremenek <kremenek@apple.com>
Wed, 12 Sep 2007 20:11:39 +0000 (20:11 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 12 Sep 2007 20:11:39 +0000 (20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41888 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/LiveVariables.cpp

index b6079e0a70f11336c89995a47a3b64394bbb2824..8e6c6e0555c65124c860352a367da371e01f8afb 100644 (file)
@@ -196,7 +196,7 @@ void LivenessTFuncs::VisitUnaryOperator(UnaryOperator* U) {
       break;      
     
     default:
-      VisitStmt(U->getSubExpr());
+      Visit(U->getSubExpr());
       break;
   }
 }