diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-24 12:53:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-24 12:53:53 +0100 |
commit | b204990346ca857802b174afe8a7fbb05e4f318e (patch) | |
tree | 6660d87cac14e978841c1eaf55994bf8a85f84a9 /src/vim9type.c | |
parent | 7cf0c114d690c91ac88c92a1a6f1b1935cb6410f (diff) | |
download | vim-git-b204990346ca857802b174afe8a7fbb05e4f318e.tar.gz |
patch 8.2.2400: Vim9: compiled functions are not profiledv8.2.2400
Problem: Vim9: compiled functions are not profiled.
Solution: Add initial changes to profile compiled functions. Fix that a
script-local function was hard to debug.
Diffstat (limited to 'src/vim9type.c')
-rw-r--r-- | src/vim9type.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim9type.c b/src/vim9type.c index 81b0db22d..1374cee1b 100644 --- a/src/vim9type.c +++ b/src/vim9type.c @@ -336,7 +336,8 @@ typval2type_int(typval_T *tv, garray_T *type_gap) // May need to get the argument types from default values by // compiling the function. if (ufunc->uf_def_status == UF_TO_BE_COMPILED - && compile_def_function(ufunc, TRUE, NULL) == FAIL) + && compile_def_function(ufunc, TRUE, FALSE, NULL) + == FAIL) return NULL; if (ufunc->uf_func_type == NULL) set_function_type(ufunc); |