[cfe-commits] r77850 - /cfe/trunk/lib/AST/DeclCXX.cpp
Daniel Dunbar
daniel at zuster.org
Sat Aug 1 18:48:30 PDT 2009
Author: ddunbar
Date: Sat Aug 1 20:48:29 2009
New Revision: 77850
URL: http://llvm.org/viewvc/llvm-project?rev=77850&view=rev
Log:
Compute end_overridden_methods in a way that keeps ENABLE_EXPENSIVE_CHECKS
happy.
Modified:
cfe/trunk/lib/AST/DeclCXX.cpp
Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=77850&r1=77849&r2=77850&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Sat Aug 1 20:48:29 2009
@@ -362,7 +362,7 @@
if (it == OverriddenMethods->end() || it->second->empty())
return 0;
- return &(*it->second)[it->second->size()];
+ return &(*it->second)[0] + it->second->size();
}
QualType CXXMethodDecl::getThisType(ASTContext &C) const {
More information about the cfe-commits
mailing list