Can't you make them mutable?  I agree it's a bit annoying to change all those classes, but it will probably need to happen eventually anyway <br><div class="gmail_quote"><div dir="ltr">On Thu, May 12, 2016 at 5:11 PM Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">rnk added a comment.<br>
<br>
Hm, the latest changes to TypeVisitor made this a lot, lot harder. With the old visitor, I duplicated a lot of the layout knowledge, but now I'm having a hard time remapping all the type indices because the current high level record types are immutable.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D20122" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20122</a><br>
<br>
<br>
<br>
</blockquote></div>