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

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Feb 15 17:30:31 PST 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 23a40f7a595d5f07cb08d1d28987d7b4ca3ed766
      https://github.com/llvm/llvm-project/commit/23a40f7a595d5f07cb08d1d28987d7b4ca3ed766
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-15 (Mon, 15 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

(cherry picked from commit ad60802a7187aa39b0374536be3fa176fe3d6256)




More information about the All-commits mailing list