From f0930235ce58a91aa3b840bece9052f44d630536 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 10 Apr 2009 04:52:36 +0000 Subject: [PATCH] Fix thinko noticed by Chris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68762 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ASTContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 17f3d431e8..ef4ff1526e 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -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(T) || isa(T)) -- 2.40.0