You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidOperationException($"Internal error: function '{signature.Name}' uses variable arguments and it has at least one argument following the varargs (...) one. This is not allowed.");
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Utilities/LlvmIrGenerator/LlvmIrInstructions.cs
+52-1Lines changed: 52 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -230,7 +230,11 @@ public Call (LlvmIrFunction function, LlvmIrVariable? result = null, ICollection
230
230
thrownewArgumentNullException($"Internal error: function '{function.Signature.Name}' requires {argCount} arguments",nameof(arguments));
231
231
}
232
232
233
-
if(arguments.Count!=argCount){
233
+
if(function.UsesVarArgs){
234
+
if(arguments.Count<argCount){
235
+
thrownewArgumentException($"Internal error: varargs function '{function.Signature.Name}' needs at least {argCount} fixed arguments, got {arguments.Count} instead");
236
+
}
237
+
}elseif(arguments.Count!=argCount){
234
238
thrownewArgumentException($"Internal error: function '{function.Signature.Name}' requires {argCount} arguments, but {arguments.Count} were provided",nameof(arguments));
0 commit comments