[cfe-commits] r43137 - /cfe/trunk/AST/ExprCXX.cpp
Ted Kremenek
kremenek at apple.com
Thu Oct 18 11:17:44 PDT 2007
Author: kremenek
Date: Thu Oct 18 13:17:43 2007
New Revision: 43137
URL: http://llvm.org/viewvc/llvm-project?rev=43137&view=rev
Log:
Replaced virtual method call to child_begin() in child_end() by
directly inlining its logic.
Modified:
cfe/trunk/AST/ExprCXX.cpp
Modified: cfe/trunk/AST/ExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/ExprCXX.cpp?rev=43137&r1=43136&r2=43137&view=diff
==============================================================================
--- cfe/trunk/AST/ExprCXX.cpp (original)
+++ cfe/trunk/AST/ExprCXX.cpp Thu Oct 18 13:17:43 2007
@@ -25,7 +25,7 @@
}
Stmt::child_iterator CXXCastExpr::child_end() {
- return ++child_begin();
+ return reinterpret_cast<Stmt**>(&Op)+1;
}
// CXXBoolLiteralExpr
More information about the cfe-commits
mailing list