From 3213ea37a98c494f35c359dc27b1845dfaa4691c Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Wed, 28 Sep 2022 22:29:13 -0700 Subject: [PATCH] Use LLVM.BuildCall2 in the IR.CallsFunction test --- tests/LLVMSharp.UnitTests/IR.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/LLVMSharp.UnitTests/IR.cs b/tests/LLVMSharp.UnitTests/IR.cs index 89ad954..56f8015 100644 --- a/tests/LLVMSharp.UnitTests/IR.cs +++ b/tests/LLVMSharp.UnitTests/IR.cs @@ -3,6 +3,7 @@ using System; using LLVMSharp.Interop; using NUnit.Framework; +using NUnit.Framework.Internal; namespace LLVMSharp.UnitTests; @@ -86,7 +87,6 @@ public class IR } [Test] - [Obsolete] public void CallsFunction([Range(0, 10)] int op1, [Range(0, 10)] int op2) { using var module = LLVMModuleRef.CreateWithName("test_call"); @@ -104,7 +104,7 @@ public class IR { var p1 = f.Params[0]; var p2 = f.Params[1]; - var call = b.BuildCall(defAdd, new[] { p1, p2 }); + var call = b.BuildCall2(defAdd.TypeOf, defAdd, new[] { p1, p2 }); var ret = b.BuildRet(call); }); module.Verify(LLVMVerifierFailureAction.LLVMPrintMessageAction);