You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
18
external/llvm/test/Transforms/ObjCARC/contract-replace-arg-use.ll
vendored
Normal file
18
external/llvm/test/Transforms/ObjCARC/contract-replace-arg-use.ll
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
|
||||
|
||||
declare i8* @objc_autoreleaseReturnValue(i8*)
|
||||
declare i8* @foo1()
|
||||
|
||||
; Check that ARC contraction replaces the function return with the value
|
||||
; returned by @objc_autoreleaseReturnValue.
|
||||
|
||||
; CHECK: %[[V0:[0-9]+]] = tail call i8* @objc_autoreleaseReturnValue(
|
||||
; CHECK: %[[V1:[0-9]+]] = bitcast i8* %[[V0]] to i32*
|
||||
; CHECK: ret i32* %[[V1]]
|
||||
|
||||
define i32* @autoreleaseRVTailCall() {
|
||||
%1 = call i8* @foo1()
|
||||
%2 = bitcast i8* %1 to i32*
|
||||
%3 = tail call i8* @objc_autoreleaseReturnValue(i8* %1)
|
||||
ret i32* %2
|
||||
}
|
Reference in New Issue
Block a user