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

            Bug ID: 29147
           Summary: .cv_loc directives for the same inline line table in
                    different sections cause assertions
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedb...@nondot.org
          Reporter: r...@google.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

This asm input crashes MC:

    .text
    .global foo
foo:
.Lfunc_begin0:
    .cv_file 1 "t.cpp"
    .cv_loc 0 1 1 1
    nop
    .cv_loc 1 1 2 1
    nop

    .data  # comment out to avoid crash
    .cv_loc 1 1 3 1
    nop
    .cv_loc 0 1 3 1
    nop
.Lfunc_end0:

    .section    .debug$S,"dr"
    .cv_inline_linetable 1 1 2 .Lfunc_begin0 .Lfunc_end0

We should validate that all directives for the function are in the same
section, otherwise we can't compute absolute label differences, obviously.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to