diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-08 06:14:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-08 06:14:04 +0000 |
commit | ed8abf18329df67b0abcbb3a10458bd8c1d2a595 (patch) | |
tree | 9f6a81434fb6001b6bd5538874e7fd94d0c8eed2 /lib/AST/ASTContext.cpp | |
parent | 29457ff5cdfa86105e47e133010087979c866388 (diff) |
Reinstate the fix for PR7556. A silly use of isTrivial() was
suppressing copies of objects with trivial copy constructors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 4d950c0bfb..d41051f5dc 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -261,7 +261,7 @@ void ASTContext::PrintStats() const { #include "clang/AST/TypeNodes.def" fprintf(stderr, "Total bytes = %d\n", int(TotalBytes)); - + // Implicit special member functions. fprintf(stderr, " %u/%u implicit default constructors created\n", NumImplicitDefaultConstructorsDeclared, @@ -282,6 +282,9 @@ void ASTContext::PrintStats() const { fprintf(stderr, "\n"); ExternalSource->PrintStats(); } + + if (!FreeMemory) + BumpAlloc.PrintStats(); } |