Make sure aggregates are properly alligned on MSP430.
authorJob Noorman <jobnoorman@gmail.com>
Tue, 30 Sep 2014 11:15:44 +0000 (11:15 +0000)
committerJob Noorman <jobnoorman@gmail.com>
Tue, 30 Sep 2014 11:15:44 +0000 (11:15 +0000)
llvm-svn: 218665

llvm/lib/Target/MSP430/MSP430Subtarget.cpp

index dbddc52..cb83b92 100644 (file)
@@ -34,6 +34,6 @@ MSP430Subtarget::MSP430Subtarget(const std::string &TT, const std::string &CPU,
                                  const std::string &FS, const TargetMachine &TM)
     : MSP430GenSubtargetInfo(TT, CPU, FS),
       // FIXME: Check DataLayout string.
-      DL("e-m:e-p:16:16-i32:16:32-n8:16"), FrameLowering(),
+      DL("e-m:e-p:16:16-i32:16:32-a:16-n8:16"), FrameLowering(),
       InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM),
       TSInfo(DL) {}