This commit is contained in:
Folkert 2020-10-14 21:42:22 +02:00
parent 31e963fad6
commit 729e16cad9
3 changed files with 4 additions and 7 deletions

View file

@ -1161,11 +1161,9 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
match scope.top_level_thunks.get(symbol) {
Some((_layout, function_value)) => {
// this is a 0-argument thunk, evaluate it!
let call = env.builder.build_call(
function_value.clone(),
&[],
"evaluate_top_level_thunk",
);
let call =
env.builder
.build_call(*function_value, &[], "evaluate_top_level_thunk");
call.try_as_basic_value().left().unwrap()
}