mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
c1c4595d1f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102547 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
366 B
LLVM
20 lines
366 B
LLVM
; RUN: opt -S -globalopt < %s | 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}
|
|
|
|
|