Simplify code, no functionality change.

llvm-svn: 153459
This commit is contained in:
Benjamin Kramer 2012-03-26 20:12:15 +00:00
parent b1e2e1e091
commit a4988caa26
1 changed files with 4 additions and 6 deletions

View File

@ -90,14 +90,12 @@ public:
StmtIteratorImpl(const VariableArrayType *t) : StmtIteratorBase(t) {}
DERIVED& operator++() {
if (inDecl() || inDeclGroup()) {
if (getVAPtr()) NextVA();
else NextDecl();
}
else if (inSizeOfTypeVA())
if (inStmt())
++stmt;
else if (getVAPtr())
NextVA();
else
++stmt;
NextDecl();
return static_cast<DERIVED&>(*this);
}