[cfe-commits] r68762 - /cfe/trunk/lib/AST/ASTContext.cpp
Anders Carlsson
andersca at mac.com
Thu Apr 9 21:52:37 PDT 2009
Author: andersca
Date: Thu Apr 9 23:52:36 2009
New Revision: 68762
URL: http://llvm.org/viewvc/llvm-project?rev=68762&view=rev
Log:
Fix thinko noticed by Chris.
Modified:
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=68762&r1=68761&r2=68762&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Thu Apr 9 23:52:36 2009
@@ -308,7 +308,7 @@
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))
More information about the cfe-commits
mailing list