[all-commits] [llvm/llvm-project] ad6080: [Verifier] Allow DW_TAG_class_type/DW_TAG_union_ty...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Feb 8 13:31:28 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad60802a7187aa39b0374536be3fa176fe3d6256
      https://github.com/llvm/llvm-project/commit/ad60802a7187aa39b0374536be3fa176fe3d6256
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-08 (Mon, 08 Feb 2021)

  Changed paths:
    M llvm/lib/IR/Verifier.cpp

  Log Message:
  -----------
  [Verifier] Allow DW_TAG_class_type/DW_TAG_union_type to have no filename

`clang/lib/CodeGen/CGOpenMPRuntime.cpp` synthesized union
(`distinct !DICompositeType(tag: DW_TAG_union_type, name: "kmp_cmplrdata_t", size: 64, elements: <0x62b690>)`)
does not have meaningful filename/line number.

D94735 dropped the previously arbitrary and untested filename/line from the union and caused a verifier error here.

This fixes `check-libarcher` failures.

Differential Revision: https://reviews.llvm.org/D96212




More information about the All-commits mailing list