]> granicus.if.org Git - clang/commit
Lower the default alignment on ASTContext's operator new.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 2 Apr 2015 16:19:54 +0000 (16:19 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 2 Apr 2015 16:19:54 +0000 (16:19 +0000)
commitce93d6f45215830eb0a6fb5de0b8ba56dac3b901
tree682372058aedee499aa4207c95c1f434034a89cd
parentbeb3261e504fd7c24d5f7e066c2b203592352fdc
Lower the default alignment on ASTContext's operator new.

It was documented as 8 and operator new[] defaults to 8, but the normal
operator new was never updated and happily wasted bytes on every other
allocation.

We still have to allocate all Types with 16 byte alignment, update the
allocation calls for Types that were missing explicit alignment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233922 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Attr.h
include/clang/AST/AttrIterator.h
lib/AST/ASTContext.cpp