diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-30 02:55:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-30 02:55:13 +0000 |
| commit | 0a415ec50c0079d84c5a97326d465a1a2ac43fab (patch) | |
| tree | e7ead4041cf9d1d85469aa8afa403851eab87a46 /clang/lib/AST | |
| parent | f122cef4df04d017c1e43b9c6444c4e8e1a5b3ed (diff) | |
| download | bcm5719-llvm-0a415ec50c0079d84c5a97326d465a1a2ac43fab.tar.gz bcm5719-llvm-0a415ec50c0079d84c5a97326d465a1a2ac43fab.zip | |
int128_t is apparently 128-bit aligned on all 64-bit targets, and
not supported on 32-bit targets, so we can define it to be 128-bit
aligned there too :)
llvm-svn: 70465
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 6cd016cab81..5f97df904cc 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/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: |

