blob: 55b2ff90ee88e10f77ee63f8bb64ee168d591316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
; RUN: opt -S -globalopt metadata.ll | FileCheck %s
; PR6112 - When globalopt does RAUW(@G, %G), the metadata reference should drop
; to null.
@G = internal global i8** null
define i32 @main(i32 %argc, i8** %argv) {
; CHECK: @main
; CHECK: %G = alloca
store i8** %argv, i8*** @G
ret i32 0
}
!named = !{!0}
; CHECK: !0 = metadata !{null}
!0 = metadata !{i8*** @G}
|