summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-09-12 20:11:39 +0000
committerTed Kremenek <kremenek@apple.com>2007-09-12 20:11:39 +0000
commitfe1da5ec56b6f2271cf00a6ed0b340f029ff8041 (patch)
tree30e25c8376d370eadb62744bf82c898dbe82a5ba
parentb10f1d881edb9ee3142ecf0ffc756321f29270ea (diff)
downloadllvm-fe1da5ec56b6f2271cf00a6ed0b340f029ff8041.tar.gz
Fixed recursion bug: should call Visit on child instead of VisitStmt.
llvm-svn: 41888
-rw-r--r--clang/Analysis/LiveVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Analysis/LiveVariables.cpp b/clang/Analysis/LiveVariables.cpp
index b6079e0a70f1..8e6c6e0555c6 100644
--- a/clang/Analysis/LiveVariables.cpp
+++ b/clang/Analysis/LiveVariables.cpp
@@ -196,7 +196,7 @@ void LivenessTFuncs::VisitUnaryOperator(UnaryOperator* U) {
break;
default:
- VisitStmt(U->getSubExpr());
+ Visit(U->getSubExpr());
break;
}
}