mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
4782b305c2
alias can be morphed into the target. Implement this transform, and fix a crash in the existing transform at the same time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64583 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|