Fix size calculation for pointer to member function

llvm-svn: 146463
This commit is contained in:
Howard Hinnant 2011-12-13 01:23:16 +00:00
parent 799c7f914c
commit 7a084fdd39
2 changed files with 5 additions and 1 deletions

View File

@ -10019,7 +10019,9 @@ public:
virtual size_t first_size() const
{
if (__cached_size_ == -1)
const_cast<long&>(__cached_size_) = __left_->size() + 3 + __right_->size();
const_cast<long&>(__cached_size_) = __left_->size() + 3
+ __right_->first_size()
+ __right_->second_size();
return __cached_size_;
}
virtual char* first_demangled_name(char* buf) const

File diff suppressed because one or more lines are too long