v.vcache: workaround a tcc arm64 invalid memory access bug

pull/9631/head
Delyan Angelov 2021-04-07 19:09:41 +03:00
parent fdb4f17866
commit 0cb0b0f9c6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -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()