diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-03 23:17:54 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-03 23:17:54 +0000 |
commit | d457589fc69dc7a9c80cd74d317c0b81a35a27c9 (patch) | |
tree | 6dfc10482b5bfc7533ce13259016998d0955842f /lib/AST/ExprCXX.cpp | |
parent | 39b630fc1cef83d58c6e0f551debb16a4d547abe (diff) |
Fix some type punning errors in SizeOfAlignOf and Typeid AST nodes. This should satisfy compilers and language lawyers alike.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprCXX.cpp')
-rw-r--r-- | lib/AST/ExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/ExprCXX.cpp b/lib/AST/ExprCXX.cpp index 1bf07c4a63..2d517196be 100644 --- a/lib/AST/ExprCXX.cpp +++ b/lib/AST/ExprCXX.cpp @@ -28,10 +28,10 @@ void CXXConditionDeclExpr::Destroy(ASTContext& C) { // CXXTypeidExpr - has child iterators if the operand is an expression Stmt::child_iterator CXXTypeidExpr::child_begin() { - return isTypeOperand() ? child_iterator() : (Stmt**)&Operand; + return isTypeOperand() ? child_iterator() : &Operand.Ex; } Stmt::child_iterator CXXTypeidExpr::child_end() { - return isTypeOperand() ? child_iterator() : (Stmt**)&Operand+1; + return isTypeOperand() ? child_iterator() : &Operand.Ex+1; } // CXXBoolLiteralExpr |