1 ; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
3 declare i8* @llvm.objc.initWeak(i8**, i8*)
5 ; Convert objc_initWeak(p, null) to *p = null.
7 ; CHECK: define i8* @test0(i8** %p) {
8 ; CHECK-NEXT: store i8* null, i8** %p
9 ; CHECK-NEXT: ret i8* null
11 define i8* @test0(i8** %p) {
12 %t = call i8* @llvm.objc.initWeak(i8** %p, i8* null)