зеркало из https://github.com/microsoft/clang-1.git
Fix thinko noticed by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
4cc2cfd48d
Коммит
f0930235ce
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче