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

David Blaikie dblaikie at gmail.com
Tue Feb 26 19:28:12 PST 2013


On Tue, Feb 26, 2013 at 7:15 PM, Peng Cheng <gm4cheng at gmail.com> wrote:
> The copy constructor of class DataLayout fails to initialize
> StackNaturalAlign.  It could lead to conditional jump on uninitialized
> variables in member function exceedsNaturalStackAlignment.

Does this fail any valgrind bots? Could you write a test case that
would fail under valgrind?

> See fix in the patch attached.
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list