From fabdd7fae0f56a5991673454431430df3fc0c10a Mon Sep 17 00:00:00 2001 From: Nate Chandler Date: Thu, 31 Aug 2023 15:16:08 -0700 Subject: [PATCH] [Test] Loosened check lines. The metatype param may or may not be removed from the callee during specialization. If it is, there is only one argument, if it is not, there are two arguments. None of that is relevant to this test case. It is just verifying that the strong_retain occurs before the apply. --- validation-test/SILOptimizer/rdar114699006.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validation-test/SILOptimizer/rdar114699006.swift b/validation-test/SILOptimizer/rdar114699006.swift index fbc0e3ee3592c..8a80277ca476a 100644 --- a/validation-test/SILOptimizer/rdar114699006.swift +++ b/validation-test/SILOptimizer/rdar114699006.swift @@ -28,9 +28,9 @@ // CHECK: [[BRIDGE_STORAGE:%[^,]+]] = struct $_BridgeStorage<__ContiguousArrayStorageBase> ([[BRIDGE_OBJECT]] : // CHECK: [[ARRAY_BUFFER:%[^,]+]] = struct $_ArrayBuffer<(String, String)> ([[BRIDGE_STORAGE]] : // CHECK: [[ARRAY:%[^,]+]] = struct $Array<(String, String)> ([[ARRAY_BUFFER]] : -// CHECK: [[DICTIONARY_INIT:%[^,]+]] = function_ref @$sSD17dictionaryLiteralSDyxq_Gx_q_td_tcfCSS_SSTg5 +// CHECK: [[DICTIONARY_INIT:%[^,]+]] = function_ref @$sSD17dictionaryLiteralSDyxq_Gx_q_td_tcfCSS_SSTg{{m?}}5 // CHECK-NEXT: strong_retain [[REF]] : $__EmptyArrayStorage -// CHECK-NEXT: apply [[DICTIONARY_INIT]]([[ARRAY]], {{.*}}) +// CHECK-NEXT: apply [[DICTIONARY_INIT]]([[ARRAY]] // CHECK-LABEL: } // end sil function '$s4main1CCACycfc' class C {