From 0cb0b0f9c60b57258d1ff3eae3d056358065b039 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 7 Apr 2021 19:09:41 +0300 Subject: [PATCH] v.vcache: workaround a tcc arm64 invalid memory access bug --- vlib/v/vcache/vcache.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/vcache/vcache.v b/vlib/v/vcache/vcache.v index aa958460a0..7f5ef0caa5 100644 --- a/vlib/v/vcache/vcache.v +++ b/vlib/v/vcache/vcache.v @@ -66,7 +66,7 @@ pub fn (mut cm CacheManager) set_temporary_options(new_opts []string) { } pub fn (mut cm CacheManager) key2cpath(key string) string { - mut cpath := cm.k2cpath[key] + mut cpath := cm.k2cpath[key] or { '' } if cpath == '' { hk := cm.vopts + key a := hash.sum64_string(hk, 5).hex_full()