From c9c5b0154d8e45d74f36ff5e132a0d1279d4d3b5 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 27 Feb 2013 21:44:59 +0000 Subject: [PATCH] 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 llvm-svn: 176213 --- include/llvm/IR/DataLayout.h | 1 + 1 file changed, 1 insertion(+) 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),