diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-04-10 04:52:36 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-04-10 04:52:36 +0000 |
| commit | 0e6d2b3a708056b8d7b4328c73c7625a5dfe7b16 (patch) | |
| tree | b572bb366c5431ec072e30b77b450ae035f6fa19 | |
| parent | 9b5038ed64105d43f3b1f21e1380c75a26235862 (diff) | |
| download | bcm5719-llvm-0e6d2b3a708056b8d7b4328c73c7625a5dfe7b16.tar.gz bcm5719-llvm-0e6d2b3a708056b8d7b4328c73c7625a5dfe7b16.zip | |
Fix thinko noticed by Chris.
llvm-svn: 68762
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 17f3d431e83..ef4ff1526e5 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/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<VariableArrayType>(T) || isa<IncompleteArrayType>(T)) |

