<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 5:32 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank" class="cremed">richard@metafoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">LGTM, although this makes the "do this properly" FIXME seem somewhat more of a pressing concern :)<br>
<br></blockquote><div><br></div><div>Yeah. How depressing. I think I'll explore biting this particular bullet. Maybe it's not as horrible as I think.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

================<br>
Comment at: lib/CodeGen/CodeGenAction.cpp:405<br>
@@ -403,4 +404,3 @@<br>
<div class="">         Column = 1;<br>
-      Loc = SourceMgr.translateFileLineCol(FileMgr.getFile(Filename), Line,<br>
-                                           Column);<br>
+      Loc = SourceMgr.translateFileLineCol(FE, Line, Column);<br>
     }<br>
</div>----------------<br>
How does `SourceMgr` respond if the file/line you give it is out of range for the file?<br></blockquote><div><br></div><div>With a Loc that returns true for Loc.isInvalid(). In the test case I added, the #line directive is completely bogus.</div>
<div><br></div><div><br></div><div>Diego.</div></div></div></div>