<br><br><div class="gmail_quote">On Tue, Feb 7, 2012 at 12:53 PM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com">kcc@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I see the problem. <div>Let me try to come up with a solution that does not involve constructors but also does not sacrifice type safety. </div><div><br><div class="gmail_quote"><div class="im"><br></div></div></div></blockquote>
<div><br></div><div>I have a patch that uses a proxy POD type. 'make && make check' passes. </div><div>It's a bit ugly in the header file (include/llvm/Attributes.h), but does not require any changes in the rest of the code,</div>
<div>is typesef and Attributes retain the default CTOR (i.e. no uninitialized Attributes objects). </div><div><br></div><div>If the approach is ok, I'll this patch (formatted and commented) for further review. </div><div>
<br></div><div>--kcc </div></div>