Fix thinko noticed by Chris.

llvm-svn: 68762
This commit is contained in:
Anders Carlsson 2009-04-10 04:52:36 +00:00
parent 9b5038ed64
commit 0e6d2b3a70
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ unsigned ASTContext::getDeclAlignInBytes(const Decl *D) {
QualType T = VD->getType();
if (const ReferenceType* RT = T->getAsReferenceType()) {
unsigned AS = RT->getPointeeType().getAddressSpace();
Align = Target.getPointerWidth(AS);
Align = Target.getPointerAlign(AS);
} else if (!T->isIncompleteType() && !T->isFunctionType()) {
// Incomplete or function types default to 1.
while (isa<VariableArrayType>(T) || isa<IncompleteArrayType>(T))