Skip to content

Bug in DIBuilder::createClassType #49557

@KornevNikita

Description

@KornevNikita
Bugzilla Link 50213
Version trunk
OS All

Extended Description

There is bug in llvm-project/llvm/lib/IR/DIBuilder.cpp in DICompositeType *DIBuilder::createClassType function. Both methods "createClassType" and "createStructType" use the same tag - "dwarf::DW_TAG_structure_type". So both for the class and for the structure we get "DW_TAG_structure_type" in IR.
For reproduce - just call attachment with "clang -cc1 -S -emit-llvm bug_reproduce.cpp -debug-info-kind=standalone"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions