mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
9fbd318d36
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133108 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
363 B
LLVM
15 lines
363 B
LLVM
; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
|
|
|
|
declare i8* @objc_initWeak(i8**, i8*)
|
|
|
|
; Convert objc_initWeak(p, null) to *p = null.
|
|
|
|
; CHECK: define i8* @test0(i8** %p) {
|
|
; CHECK-NEXT: store i8* null, i8** %p
|
|
; CHECK-NEXT: ret i8* null
|
|
; CHECK-NEXT: }
|
|
define i8* @test0(i8** %p) {
|
|
%t = call i8* @objc_initWeak(i8** %p, i8* null)
|
|
ret i8* %t
|
|
}
|