commit | 290240226f1649bd28513ac3dc56491467059c0d | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Oct 18 18:17:43 2007 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Oct 18 18:17:43 2007 +0000 |
tree | 7632b06435d387dd29bcba3ac056c1ecb14522c2 | |
parent | 38290e8b6d1f1c151fd815c8a53205f98089a31f [diff] [blame] |
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
diff --git a/AST/ExprCXX.cpp b/AST/ExprCXX.cpp index 74d471e..31e1e1d 100644 --- a/AST/ExprCXX.cpp +++ b/AST/ExprCXX.cpp
@@ -25,7 +25,7 @@ } Stmt::child_iterator CXXCastExpr::child_end() { - return ++child_begin(); + return reinterpret_cast<Stmt**>(&Op)+1; } // CXXBoolLiteralExpr