[LLVM] Uninitialized member in copy constructor in DataLayout.h

Peng Cheng gm4cheng at gmail.com
Tue Feb 26 19:15:50 PST 2013


The copy constructor of class DataLayout fails to
initialize StackNaturalAlign.  It could lead to conditional jump on
uninitialized variables in member function exceedsNaturalStackAlignment.

See fix in the patch attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130226/21c4a7bb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DataLayout.patch
Type: application/octet-stream
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130226/21c4a7bb/attachment.obj>


More information about the llvm-commits mailing list