aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-03-12 12:56:25 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-03-12 12:56:25 -0400
commitbcce77700fe0967b4dd796a3a21605868b6f9aa2 (patch)
treeb3a062d4a1e3ed2e2cf103af89510670a783dd87 /src/ir.cpp
parent5834ff0cc58ffba8e4fe218fcf888d9f9fcf95b2 (diff)
downloadzig-bcce77700fe0967b4dd796a3a21605868b6f9aa2.tar.gz
zig-bcce77700fe0967b4dd796a3a21605868b6f9aa2.zip
some return types disqualify comptime fn call caching
closes #828
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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);