diff options
Diffstat (limited to 'AST/Expr.cpp')
-rw-r--r-- | AST/Expr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AST/Expr.cpp b/AST/Expr.cpp index 22767053db..08325fe3a4 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 reinterpret_cast<Stmt**>(&Val); + return child_iterator(reinterpret_cast<Stmt**>(&Val),Opc==SizeOf); } Stmt::child_iterator UnaryOperator::child_end() { - return reinterpret_cast<Stmt**>(&Val)+1; + return child_iterator(reinterpret_cast<Stmt**>(&Val)+1,Opc==SizeOf); } // SizeOfAlignOfTypeExpr |