<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 25, 2013 at 5:02 PM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com" target="_blank">rjmccall@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Feb 25, 2013, at 4:55 PM, Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>> wrote:<br>

> here’s another patch for review:<br>
><br>
> Allocate stack storage for .block_descriptor and captured self.<br>
> This way the register allocator will not optimize away the the<br>
> debug info for captured variables.<br>
<br>
</div>Allocating stack storage is not the right way to fix this problem.<br>
The frontend is emitting the right intrinsics to say that the argument<br>
is being kept in an LLVM value, not in memory.  If that's not working,<br>
then basically all optimized debug info is useless.<br><br></blockquote><div><br></div><div style>That's pretty accurate. The backend in a lot of places is depending upon an</div><div style>alloca existing in order to get a location for a variable. To make optimized</div>
<div style>debug info work we're going to need to fix that assumption.</div><div style><br></div><div style>-eric </div></div><br></div></div>