diff --git a/compiler/compiler-core.cpp b/compiler/compiler-core.cpp index 56757a3ee8..2be235feb0 100644 --- a/compiler/compiler-core.cpp +++ b/compiler/compiler-core.cpp @@ -465,7 +465,7 @@ VarPtr CompilerCore::create_var(const std::string &name, VarData::Type type) { VarPtr CompilerCore::get_global_var(const std::string &name, VarData::Type type, VertexPtr init_val, bool *is_new_inserted) { - TSHashTable::HTNode *node = global_vars_ht.at(vk::std_hash(name)); + auto *node = global_vars_ht.at(vk::std_hash(name)); VarPtr new_var; if (!node->data) { AutoLocker locker(node); diff --git a/compiler/compiler-core.h b/compiler/compiler-core.h index 697fd8322f..4ef7072f5a 100644 --- a/compiler/compiler-core.h +++ b/compiler/compiler-core.h @@ -33,7 +33,7 @@ class CompilerCore { TSHashTable functions_ht; TSHashTable classes_ht; TSHashTable defines_ht; - TSHashTable global_vars_ht; + TSHashTable global_vars_ht; TSHashTable libs_ht; TSHashTable modulites_ht; TSHashTable composer_json_ht;