diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-03-09 14:20:44 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-03-09 14:20:44 -0500 |
| commit | 6db9be8900bf43632c8a98d91c6a92f30b33500a (patch) | |
| tree | e5a9dde7f5cc3a44439e22c16695edac010b55ab /src/analyze.hpp | |
| parent | aaf2230ae89d74497042b7fada8c8023bf274dbd (diff) | |
| download | zig-6db9be8900bf43632c8a98d91c6a92f30b33500a.tar.gz zig-6db9be8900bf43632c8a98d91c6a92f30b33500a.zip | |
don't memoize comptime functions if they can mutate state via parameters
closes #639
Diffstat (limited to 'src/analyze.hpp')
| -rw-r--r-- | src/analyze.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyze.hpp b/src/analyze.hpp index 9ed24f4e46..bdc60b02bb 100644 --- a/src/analyze.hpp +++ b/src/analyze.hpp @@ -195,5 +195,6 @@ TypeTableEntry *get_auto_err_set_type(CodeGen *g, FnTableEntry *fn_entry); uint32_t get_coro_frame_align_bytes(CodeGen *g); bool fn_type_can_fail(FnTypeId *fn_type_id); +bool fn_eval_cacheable(Scope *scope); #endif |
