mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-11 18:36:55 +00:00
9aff829f78
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}
|