<div dir="ltr">But you have other locations inside of functions so I don't get it.<div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 30, 2018 at 3:12 PM Alexey Bataev via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ABataev added a comment.<br>
<br>
In <a href="https://reviews.llvm.org/D45784#1181119" rel="noreferrer" target="_blank">https://reviews.llvm.org/D45784#1181119</a>, @echristo wrote:<br>
<br>
> Can you explain this a bit more with some examples of wrong relocations?<br>
><br>
> Thanks!<br>
><br>
> -eric<br>
<br>
<br>
It is the requirement of the ptxas. The first function label must follow the debug location, otherwise ptxas is unable to generate correct relo info for functions.<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D45784" rel="noreferrer" target="_blank">https://reviews.llvm.org/D45784</a><br>
<br>
<br>
<br>
</blockquote></div>