aboutsummaryrefslogtreecommitdiff
path: root/AST/Expr.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-12-15 00:39:18 +0000
committerTed Kremenek <kremenek@apple.com>2007-12-15 00:39:18 +0000
commitf816f77480e70caadfdbd741cf17d84a6be30b71 (patch)
tree617074bd2b34d08002ecaef3c727ef24ae0c3deb /AST/Expr.cpp
parentb51d2b2d5497693783338c58dd778b6427e85ba7 (diff)
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
Diffstat (limited to 'AST/Expr.cpp')
-rw-r--r--AST/Expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AST/Expr.cpp b/AST/Expr.cpp
index 08325fe3a4..9747c47080 100644
--- a/AST/Expr.cpp
+++ b/AST/Expr.cpp
@@ -1028,10 +1028,10 @@ Stmt::child_iterator ParenExpr::child_end() {
// 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