[llvm-bugs] [Bug 33107] New: Inlined subroutine with empty ranges / duplicate linkable entries

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 19 13:21:00 PDT 2017


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

            Bug ID: 33107
           Summary: Inlined subroutine with empty ranges / duplicate
                    linkable entries
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: aprantl at apple.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18478
  --> https://bugs.llvm.org/attachment.cgi?id=18478&action=edit
manually-reduced testcase

The attached testcase (when compiled with llc) highlights two related bugs.
An inlined subroutine with an empty range:

0x0000005b:     TAG_subprogram [6] *
                 AT_low_pc( 0x0000000000000000 )
                 AT_high_pc( 0x00000017 )
                 AT_APPLE_omit_frame_ptr( true )
                 AT_frame_base( rsp )
                 AT_decl_line( 25 )
                 AT_specification( {0x0000004f}"m_fn3" )

0x0000006f:         TAG_inlined_subroutine [7]  
                     AT_abstract_origin( {0x00000040}"m_fn1" )
                     AT_low_pc( 0x0000000000000013 )
                     AT_high_pc( 0x00000000 )
                                 ^^^^^^^^^^
                     AT_call_file( "test.ii" )
                     AT_call_line( 29 )

0x00000082:         NULL

And non-increasing line table entries:

Address            Line   File
------------------ ------ ------------------------------
0x0000000000000000      1     25      0 is_stmt
0x000000000000000f      1     29     28 is_stmt prologue_end
0x0000000000000013      1      5     25 is_stmt
0x0000000000000013      1     29     28 is_stmt
0x0000000000000017      1     29     28 is_stmt end_sequence

-- 
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/20170519/e292e426/attachment.html>


More information about the llvm-bugs mailing list