diff --git a/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h b/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h index 130cf1ac7ef1aa..f25e4cf1dd119f 100644 --- a/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h +++ b/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h @@ -179,7 +179,7 @@ class ForestArena { } size_t nodeCount() const { return NodeCount; } - size_t bytes() const { return Arena.getBytesAllocated() + sizeof(this); } + size_t bytes() const { return Arena.getBytesAllocated() + sizeof(*this); } private: ForestNode &create(ForestNode::Kind K, SymbolID SID, Token::Index Start,