diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-09-12 20:28:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-09-12 20:28:48 +0000 |
commit | 302def221cfb922d439118c870953e1b9895b2c2 (patch) | |
tree | fd0a915fc65d418f60774a06ea5324406d6e63bf | |
parent | 437b4d8bda0181cbec71441088dab2b490593de4 (diff) | |
download | llvm-302def221cfb922d439118c870953e1b9895b2c2.tar.gz |
Minor space tightening.
Removed extraneous call to Observer->ObserveStmt when handling DeclRefExprs.
llvm-svn: 41890
-rw-r--r-- | clang/Analysis/LiveVariables.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/Analysis/LiveVariables.cpp b/clang/Analysis/LiveVariables.cpp index 8e6c6e0555c6..ab5c552af736 100644 --- a/clang/Analysis/LiveVariables.cpp +++ b/clang/Analysis/LiveVariables.cpp @@ -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 |