diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-03-12 12:56:25 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-03-12 12:56:25 -0400 |
| commit | bcce77700fe0967b4dd796a3a21605868b6f9aa2 (patch) | |
| tree | b3a062d4a1e3ed2e2cf103af89510670a783dd87 /src/ir.cpp | |
| parent | 5834ff0cc58ffba8e4fe218fcf888d9f9fcf95b2 (diff) | |
| download | zig-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.cpp | 2 |
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); |
