Remove unneeded param

This commit is contained in:
Ayaz Hafiz 2022-11-22 17:24:07 -06:00
parent 36ff2e577b
commit 12d013c062
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -2718,7 +2718,7 @@ pub fn build_exp_stmt<'a, 'ctx, 'env>(
zero.into()
}
Crash(sym, _) => {
throw_user_exception(env, scope, parent, sym);
throw_user_exception(env, scope, sym);
// unused value (must return a BasicValue)
let zero = env.context.i64_type().const_zero();
@ -5563,7 +5563,6 @@ pub(crate) fn throw_exception<'a, 'ctx, 'env>(
pub(crate) fn throw_user_exception<'a, 'ctx, 'env>(
env: &Env<'a, 'ctx, 'env>,
scope: &mut Scope<'a, 'ctx>,
parent: FunctionValue<'ctx>,
message: &Symbol,
) {
let msg_val = load_symbol(scope, message);