mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-06 10:38:54 +00:00
![Duncan Sands](/assets/img/avatar_default.png)
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
11 lines
152 B
LLVM
11 lines
152 B
LLVM
; RUN: llvm-as < %s | opt -globalopt
|
|
|
|
@g = external global i32
|
|
|
|
@a = alias bitcast (i32* @g to i8*)
|
|
|
|
define void @f() {
|
|
%tmp = load i8* @a
|
|
ret void
|
|
}
|