[llvm-bugs] [Bug 41191] New: DITypeMap incorrectly handles DW_TAG_variant_part

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 21 18:53:58 PDT 2019


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

            Bug ID: 41191
           Summary: DITypeMap incorrectly handles DW_TAG_variant_part
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: philipjcraig at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 21648
  --> https://bugs.llvm.org/attachment.cgi?id=21648&action=edit
llvm-ir containing DW_TAG_variant_part

The attached file (test.ll) contains the LLVM-IR for the following Rust code:

pub enum AB {
    A(i32),
    B(i32),
}

pub fn test(x: AB) -> AB {
    x
}

The following commands reproduce the contents of test.ll as expected:
opt test.ll -S -disable-debug-info-type-map
llvm-as test.ll && opt test.bc -S -disable-debug-info-type-map

The output of the following command is missing the DW_TAG_variant_part and its
children:
opt test.ll -S

The output of the following command is missing the DW_TAG_structure_type:
llvm-as test.ll && opt test.bc -S

-- 
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/20190322/a8016cf8/attachment.html>


More information about the llvm-bugs mailing list