diff options
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 6cd016cab8..5f97df904c 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -413,6 +413,11 @@ ASTContext::getTypeInfo(const Type *T) { Width = Target.getLongLongWidth(); Align = Target.getLongLongAlign(); break; + case BuiltinType::Int128: + case BuiltinType::UInt128: + Width = 128; + Align = 128; // int128_t is 128-bit aligned on all targets. + break; case BuiltinType::Float: Width = Target.getFloatWidth(); Align = Target.getFloatAlign(); @@ -425,13 +430,6 @@ ASTContext::getTypeInfo(const Type *T) { Width = Target.getLongDoubleWidth(); Align = Target.getLongDoubleAlign(); break; - case BuiltinType::Int128: - case BuiltinType::UInt128: - Width = 128; - - // FIXME: Is this correct for all targets? - Align = 128; - break; } break; case Type::FixedWidthInt: |