]> granicus.if.org Git - clang/commitdiff
Fix thinko noticed by Chris.
authorAnders Carlsson <andersca@mac.com>
Fri, 10 Apr 2009 04:52:36 +0000 (04:52 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 10 Apr 2009 04:52:36 +0000 (04:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68762 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 17f3d431e833892782bb8c84bdaa04f5a60b3113..ef4ff1526e5892da61fdbb99b6d91f94ae1bcecd 100644 (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))