Skip to content
Snippets Groups Projects

IP SROA Parameters

Merged rarbore2 requested to merge ip-sroa-params into main
1 unresolved thread
Files
2
@@ -716,8 +716,10 @@ fn typeflow(
// Check number of run-time arguments.
if inputs.len() - 1 != callee.param_types.len() {
return Error(format!(
"Call node has {} inputs, but calls a function with {} parameters.",
"Call node in {} has {} inputs, but calls a function ({}) with {} parameters.",
function.name,
inputs.len() - 1,
callee.name,
callee.param_types.len(),
));
}
@@ -725,8 +727,10 @@ fn typeflow(
// Check number of dynamic constant arguments.
if dc_args.len() != callee.num_dynamic_constants as usize {
return Error(format!(
"Call node references {} dynamic constants, but calls a function expecting {} dynamic constants.",
"Call node in {} references {} dynamic constants, but calls a function ({}) expecting {} dynamic constants.",
function.name,
dc_args.len(),
callee.name,
callee.num_dynamic_constants
));
}
Loading