mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
a7a6be22eb
Track unresolved nodes under distinct `MDNode`s during `MapMetadata()`, and resolve them at the end. Previously, these cycles wouldn't get resolved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228180 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
270 B
LLVM
14 lines
270 B
LLVM
; RUN: llvm-link -o - -S %s | FileCheck %s
|
|
; Crasher for PR22456: MapMetadata() should resolve all cycles.
|
|
|
|
; CHECK: !named = !{!0}
|
|
!named = !{!0}
|
|
|
|
; CHECK: !0 = distinct !{!1}
|
|
!0 = distinct !{!1}
|
|
|
|
; CHECK-NEXT: !1 = !{!2}
|
|
; CHECK-NEXT: !2 = !{!1}
|
|
!1 = !{!2}
|
|
!2 = !{!1}
|