Home | History | Annotate | Download | only in ObjCARC
      1 ; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
      2 
      3 declare i8* @objc_initWeak(i8**, i8*)
      4 
      5 ; Convert objc_initWeak(p, null) to *p = null.
      6 
      7 ; CHECK:      define i8* @test0(i8** %p) {
      8 ; CHECK-NEXT:   store i8* null, i8** %p
      9 ; CHECK-NEXT:   ret i8* null
     10 ; CHECK-NEXT: }
     11 define i8* @test0(i8** %p) {
     12   %t = call i8* @objc_initWeak(i8** %p, i8* null)
     13   ret i8* %t
     14 }
     15