Removed "isSizeOfExpr" mode from StmtIterator. It turned out not to be
so useful and introduced a few bugs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45051 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Expr.cpp b/AST/Expr.cpp
index 08325fe..9747c47 100644
--- a/AST/Expr.cpp
+++ b/AST/Expr.cpp
@@ -1028,10 +1028,10 @@
// UnaryOperator
Stmt::child_iterator UnaryOperator::child_begin() {
- return child_iterator(reinterpret_cast<Stmt**>(&Val),Opc==SizeOf);
+ return reinterpret_cast<Stmt**>(&Val);
}
Stmt::child_iterator UnaryOperator::child_end() {
- return child_iterator(reinterpret_cast<Stmt**>(&Val)+1,Opc==SizeOf);
+ return reinterpret_cast<Stmt**>(&Val+1);
}
// SizeOfAlignOfTypeExpr