From 401aa7b146d35a340d453f2ada2e110f47caf695 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 18 Oct 2007 18:17:43 +0000 Subject: [PATCH] Replaced virtual method call to child_begin() in child_end() by directly inlining its logic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43137 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/ExprCXX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AST/ExprCXX.cpp b/AST/ExprCXX.cpp index 74d471edde..31e1e1db91 100644 --- a/AST/ExprCXX.cpp +++ b/AST/ExprCXX.cpp @@ -25,7 +25,7 @@ Stmt::child_iterator CXXCastExpr::child_begin() { } Stmt::child_iterator CXXCastExpr::child_end() { - return ++child_begin(); + return reinterpret_cast(&Op)+1; } // CXXBoolLiteralExpr -- 2.50.1