Xamarin Public Jenkins (auto-signing) 64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00

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
}