-Rpass causing internal error with #line directives

Diego Novillo dnovillo at google.com
Tue May 6 11:50:30 PDT 2014


On Tue, May 6, 2014 at 12:15 PM, Diego Novillo <dnovillo at google.com> wrote:

>
> This code will cause an internal error when compiled with -Rpass=inline
>
> int foo(int j) { return j / 10; }
> #line 4242 "path/to/autogen-src.dat"
> int baz(int j) { return foo(j) * 3; }
>
>
> $ clang -O2 -g -Rpass=inline -c foo.cc
>

My attempt at handling this: http://reviews.llvm.org/D3625


I'm not really thrilled with the solution. Even if we can't get back to the
source file, I would like the location emitted at the very least. It's
Right There.


Diego.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140506/ce08cc58/attachment.html>


More information about the cfe-commits mailing list