From: Ted Kremenek Date: Wed, 12 Sep 2007 20:11:39 +0000 (+0000) Subject: Fixed recursion bug: should call Visit on child instead of VisitStmt. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37f97010c1e8c81eb0d3b431bf7cd54dca89bde2;p=clang Fixed recursion bug: should call Visit on child instead of VisitStmt. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41888 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Analysis/LiveVariables.cpp b/Analysis/LiveVariables.cpp index b6079e0a70..8e6c6e0555 100644 --- a/Analysis/LiveVariables.cpp +++ b/Analysis/LiveVariables.cpp @@ -196,7 +196,7 @@ void LivenessTFuncs::VisitUnaryOperator(UnaryOperator* U) { break; default: - VisitStmt(U->getSubExpr()); + Visit(U->getSubExpr()); break; } }