]> granicus.if.org Git - clang/commitdiff
Fix alignment for msp430 integer types.
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 30 Jan 2010 12:55:11 +0000 (12:55 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 30 Jan 2010 12:55:11 +0000 (12:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94879 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 1d898726f9cd79d3b9f970ea1bc4243e6b08a49a..926d78b04c5241374b52805133a58bad6282f961 100644 (file)
@@ -1671,13 +1671,10 @@ namespace {
   public:
     MSP430TargetInfo(const std::string& triple) : TargetInfo(triple) {
       TLSSupported = false;
-      IntWidth = 16;
-      LongWidth = 32;
-      LongLongWidth = 64;
-      PointerWidth = 16;
-      IntAlign = 8;
-      LongAlign = LongLongAlign = 8;
-      PointerAlign = 8;
+      IntWidth = 16; IntAlign = 16;
+      LongWidth = 32; LongLongWidth = 64;
+      LongAlign = LongLongAlign = 16;
+      PointerWidth = 16; PointerAlign = 16;
       SizeType = UnsignedInt;
       IntMaxType = SignedLong;
       UIntMaxType = UnsignedLong;