[llvm] r176213 - Copy missing member in DataLayout copy ctor.

David Blaikie dblaikie at gmail.com
Wed Feb 27 13:44:59 PST 2013


Author: dblaikie
Date: Wed Feb 27 15:44:59 2013
New Revision: 176213

URL: http://llvm.org/viewvc/llvm-project?rev=176213&view=rev
Log:
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 at gmail.com>

Modified:
    llvm/trunk/include/llvm/IR/DataLayout.h

Modified: llvm/trunk/include/llvm/IR/DataLayout.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DataLayout.h?rev=176213&r1=176212&r2=176213&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DataLayout.h (original)
+++ llvm/trunk/include/llvm/IR/DataLayout.h Wed Feb 27 15:44:59 2013
@@ -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),





More information about the llvm-commits mailing list