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: unassignedb...@nondot.org
          Reporter: philipjcr...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to