[llvm-branch-commits] [cfe-branch] r122477 - /cfe/branches/Apple/whitney/lib/Sema/SemaType.cpp
Daniel Dunbar
daniel at zuster.org
Wed Dec 22 21:40:13 PST 2010
Author: ddunbar
Date: Wed Dec 22 23:40:12 2010
New Revision: 122477
URL: http://llvm.org/viewvc/llvm-project?rev=122477&view=rev
Log:
Merge r121473:
--
Author: Douglas Gregor <dgregor at apple.com>
Date: Fri Dec 10 08:12:03 2010 +0000
Use TypeAlignment constant rather than fixed alignment of 8
Modified:
cfe/branches/Apple/whitney/lib/Sema/SemaType.cpp
Modified: cfe/branches/Apple/whitney/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/lib/Sema/SemaType.cpp?rev=122477&r1=122476&r2=122477&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/lib/Sema/SemaType.cpp (original)
+++ cfe/branches/Apple/whitney/lib/Sema/SemaType.cpp Wed Dec 22 23:40:12 2010
@@ -1722,7 +1722,8 @@
// FIXME: LocInfoTypes are "transient", only needed for passing to/from Parser
// and Sema during declaration parsing. Try deallocating/caching them when
// it's appropriate, instead of allocating them and keeping them around.
- LocInfoType *LocT = (LocInfoType*)BumpAlloc.Allocate(sizeof(LocInfoType), 8);
+ LocInfoType *LocT = (LocInfoType*)BumpAlloc.Allocate(sizeof(LocInfoType),
+ TypeAlignment);
new (LocT) LocInfoType(T, TInfo);
assert(LocT->getTypeClass() != T->getTypeClass() &&
"LocInfoType's TypeClass conflicts with an existing Type class");
More information about the llvm-branch-commits
mailing list