mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
4f17a54bfa
The call to copyAttributesFrom will copy the visibility, which might assert if it were to produce something invalid like "internal hidden". We avoid it by first creating the replacement with the original linkage and then setting it to internal affter the call to copyAttributesFrom. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219184 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
401 B
LLVM
21 lines
401 B
LLVM
$c2 = comdat any
|
|
|
|
@v1 = weak_odr global i32 41, comdat $c2
|
|
define weak_odr protected i32 @f1(i8* %this) comdat $c2 {
|
|
bb20:
|
|
store i8* %this, i8** null
|
|
br label %bb21
|
|
bb21:
|
|
ret i32 41
|
|
}
|
|
|
|
@r21 = global i32* @v1
|
|
@r22 = global i32(i8*)* @f1
|
|
|
|
@a21 = alias i32* @v1
|
|
@a22 = alias bitcast (i32* @v1 to i16*)
|
|
|
|
@a23 = alias i32(i8*)* @f1
|
|
@a24 = alias bitcast (i32(i8*)* @f1 to i16*)
|
|
@a25 = alias i16* @a24
|