[llvm-bugs] [Bug 24716] .debug_lines wrong when inlined functions are used.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 25 13:18:49 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24716

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
What's incorrect about the zero line number?

It looks like these instructions may be associated with the global ctor for
this file, so there's no particular line to associate it with.

Here's a simpler example:

  int f();
  int x = f();
  int y = f();

this produces 3 functions:

__cxx_global_var_init, with code associated with line 2
__cxx_global_var_init.1, with code associated with line 3
_GLOBAL__sub_I_x.cpp, with code associated with line 0, and calls init and
init.1

So there doesn't seem like there's any good line to associate that function
with, just with the file in general.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150925/c5b5076e/attachment.html>


More information about the llvm-bugs mailing list