Copy missing member in DataLayout copy ctor.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 27 Feb 2013 21:44:59 +0000 (21:44 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 27 Feb 2013 21:44:59 +0000 (21:44 +0000)
Test case is missing due to it not being reachable through the current tools
but out of tree code such as the sample at
http://llvm.org/docs/tutorial/LangImpl4.html

Patch by Peng Cheng <gm4cheng@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176213 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/DataLayout.h

index bfdb057ec6fca825dafc375933f83bf325ad0a8f..73d9c4ffce5d7e0c191f3ac86a7d87629945fe7a 100644 (file)
@@ -172,6 +172,7 @@ public:
   DataLayout(const DataLayout &TD) :
     ImmutablePass(ID),
     LittleEndian(TD.isLittleEndian()),
+    StackNaturalAlign(TD.StackNaturalAlign),
     LegalIntWidths(TD.LegalIntWidths),
     Alignments(TD.Alignments),
     Pointers(TD.Pointers),