mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
c40d5a1d2a
Fix for PR32577. Global variables may have !associated metadata, which includes a reference to another global. It needs remapping. llvm-svn: 302203
12 lines
217 B
LLVM
12 lines
217 B
LLVM
; RUN: llvm-link %s -S | FileCheck %s
|
|
|
|
; CHECK-DAG: @a = global i32 0
|
|
; CHECK-DAG: @b = global i32 0, !associated !0
|
|
|
|
; CHECK-DAG: !0 = !{i32* @b}
|
|
|
|
@a = global i32 0
|
|
@b = global i32 0, !associated !0
|
|
|
|
!0 = !{i32* @b}
|