From bcce77700fe0967b4dd796a3a21605868b6f9aa2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 12 Mar 2018 12:56:25 -0400 Subject: some return types disqualify comptime fn call caching closes #828 --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index a52aaa2086..553fbcbf06 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -11878,7 +11878,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal return_type = specified_return_type; } - bool cacheable = fn_eval_cacheable(exec_scope); + bool cacheable = fn_eval_cacheable(exec_scope, return_type); IrInstruction *result = nullptr; if (cacheable) { auto entry = ira->codegen->memoized_fn_eval_table.maybe_get(exec_scope); -- cgit v1.2.3