From: David Blaikie Date: Wed, 27 Feb 2013 21:44:59 +0000 (+0000) Subject: Copy missing member in DataLayout copy ctor. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cd275c57afda09f7c0ee98f23d0f243d5dc3fc8b;p=oota-llvm.git 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 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 bfdb057ec6f..73d9c4ffce5 100644 --- a/include/llvm/IR/DataLayout.h +++ b/include/llvm/IR/DataLayout.h @@ -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),