forked from OSchip/llvm-project
Fixed a typo in getPreferredTypeAlign method.
llvm-svn: 63116
This commit is contained in:
parent
7687a998a4
commit
7ec8851c89
|
@ -463,7 +463,7 @@ unsigned ASTContext::getPreferredTypeAlign(const Type *T) {
|
|||
// Doubles should be naturally aligned if possible.
|
||||
if (const BuiltinType *BT = dyn_cast<BuiltinType>(getCanonicalType(T)))
|
||||
if (BT->getKind() == BuiltinType::Double)
|
||||
return std::max(ABIAlign, 8U);
|
||||
return std::max(ABIAlign, 64U);
|
||||
|
||||
return ABIAlign;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue