You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
363 B
15 lines
363 B
4 months ago
|
; 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
|
||
|
}
|