commit | cd275c57afda09f7c0ee98f23d0f243d5dc3fc8b | [log] [tgz] |
---|---|---|
author | David Blaikie <dblaikie@gmail.com> | Wed Feb 27 21:44:59 2013 +0000 |
committer | David Blaikie <dblaikie@gmail.com> | Wed Feb 27 21:44:59 2013 +0000 |
tree | 2ee22c219a02ad180f9b0636156032758e46478d | |
parent | b302a4e6b572a360d7153d2e1e14b53f053c282d [diff] |
Copy missing member in DataLayout copy ctor. 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
diff --git a/include/llvm/IR/DataLayout.h b/include/llvm/IR/DataLayout.h index bfdb057..73d9c4f 100644 --- a/include/llvm/IR/DataLayout.h +++ b/include/llvm/IR/DataLayout.h
@@ -172,6 +172,7 @@ DataLayout(const DataLayout &TD) : ImmutablePass(ID), LittleEndian(TD.isLittleEndian()), + StackNaturalAlign(TD.StackNaturalAlign), LegalIntWidths(TD.LegalIntWidths), Alignments(TD.Alignments), Pointers(TD.Pointers),