<div dir="ltr">I've just wasted a day chasing my tail because of subtleties introduced to handle the optionality of the DataLayout. I would like to never do this again. =]<div><br></div><div>We now have this attached to the Module with just a flimsy faked-up pass to keep APIs consistent. So, is there any problem with beginning down the path of:</div><div><br></div><div>1) Synthesizing a "default" boring DataLayout for all modules that don't specify one.</div><div>2) Changing the APIs to make it clear that this can never be missing and is always available.</div><div>3) Start ripping out all of the complexity in the compiler dealing with this.</div><div><br></div><div>If there isn't, I'm willing to do some of the leg work here.</div><div>-Chandler</div></div>