]> granicus.if.org Git - clang/commitdiff
Replaced virtual method call to child_begin() in child_end() by
authorTed Kremenek <kremenek@apple.com>
Thu, 18 Oct 2007 18:17:43 +0000 (18:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 18 Oct 2007 18:17:43 +0000 (18:17 +0000)
directly inlining its logic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43137 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ExprCXX.cpp

index 74d471edde4cc3ad98037d7e364c2f6adf01c56f..31e1e1db91926119e62a985bb66f4102331171e5 100644 (file)
@@ -25,7 +25,7 @@ Stmt::child_iterator CXXCastExpr::child_begin() {
 }
 
 Stmt::child_iterator CXXCastExpr::child_end() {
-  return ++child_begin();
+  return reinterpret_cast<Stmt**>(&Op)+1;
 }
 
 // CXXBoolLiteralExpr