mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
ae03f03be4
This was causing us to create duplicate metadata on global variables. Debug info test case by Adrian Prantl, additional test cases by me. Fixes PR31012. Differential Revision: https://reviews.llvm.org/D26622 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286905 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
280 B
LLVM
20 lines
280 B
LLVM
@g1 = external global i32, !attach !0
|
|
|
|
@g2 = global i32 1, !attach !0
|
|
|
|
@g3 = global i32 2, !attach !0
|
|
|
|
declare !attach !0 void @f1()
|
|
|
|
define void @f2() !attach !0 {
|
|
call void @f1()
|
|
store i32 0, i32* @g1
|
|
ret void
|
|
}
|
|
|
|
define void @f3() !attach !0 {
|
|
ret void
|
|
}
|
|
|
|
!0 = !{i32 1}
|