mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
0e6fcb078c
alias can be morphed into the target. Implement this transform, and fix a crash in the existing transform at the same time. llvm-svn: 64583
13 lines
188 B
LLVM
13 lines
188 B
LLVM
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | grep {define void @a}
|
|
|
|
define internal void @f() {
|
|
ret void
|
|
}
|
|
|
|
@a = alias void ()* @f
|
|
|
|
define void @g() {
|
|
call void()* @a()
|
|
ret void
|
|
}
|