From d4c91c96d300f0a3f7201d89d9aca8aead134b0e Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Tue, 31 Aug 2021 12:54:59 +0700 Subject: [PATCH] [K/N] Fix `objc_acr_contract` test in two_stage mode --- .../backend.native/tests/interop/objc_arc_contract/main.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kotlin-native/backend.native/tests/interop/objc_arc_contract/main.ll b/kotlin-native/backend.native/tests/interop/objc_arc_contract/main.ll index eaec06b0622..d2561ea7f8b 100644 --- a/kotlin-native/backend.native/tests/interop/objc_arc_contract/main.ll +++ b/kotlin-native/backend.native/tests/interop/objc_arc_contract/main.ll @@ -3,7 +3,8 @@ declare void @llvm.objc.clang.arc.use(...) nounwind -define void @test(i8* %a, i8* %b) { +; define as weak, so we don't have a problem in a two-stage scenario. +define weak void @test(i8* %a, i8* %b) { call void (...) @llvm.objc.clang.arc.use(i8* %a, i8* %b) nounwind ret void } \ No newline at end of file