mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 04:16:09 +00:00

Always read bitcode according to the -opaque-pointers mode. Do not perform auto-detection to implicitly switch to typed pointers. This is a step towards removing typed pointer support, and also eliminates the class of problems where linking may fail if a typed pointer module is loaded before an opaque pointer module. (The latest place where this was encountered is D139924, but this has previously been fixed in other places doing bitcode linking as well.) Differential Revision: https://reviews.llvm.org/D139940
22 lines
622 B
LLVM
22 lines
622 B
LLVM
target triple = "arm64-apple-ios7.0"
|
|
|
|
; RUN: llvm-dis < %S/upgrade-arc-runtime-calls-bitcast.bc | FileCheck %s
|
|
|
|
; CHECK: tail call ptr @objc_retain(i32 1)
|
|
; CHECK: tail call ptr @objc_storeStrong(
|
|
|
|
define void @testRuntimeCalls(i8* %a, i8** %b) {
|
|
%v6 = tail call i8* @objc_retain(i32 1)
|
|
%1 = tail call i8* @objc_storeStrong(i8** %b, i8* %a)
|
|
ret void
|
|
}
|
|
|
|
declare i8* @objc_retain(i32)
|
|
declare i8* @objc_storeStrong(i8**, i8*)
|
|
|
|
attributes #0 = { nounwind }
|
|
|
|
!llvm.module.flags = !{!0}
|
|
|
|
!0 = !{i32 1, !"clang.arc.retainAutoreleasedReturnValueMarker", !"mov\09fp, fp\09\09; marker for objc_retainAutoreleaseReturnValue"}
|