diff --git a/src/runtime/logging.cc b/src/runtime/logging.cc index 0c7c9f6fa3641..4d70dbd47b611 100644 --- a/src/runtime/logging.cc +++ b/src/runtime/logging.cc @@ -226,7 +226,7 @@ std::unordered_map ParseTvmLogDebugSpec(const char* opt_spec) const std::unordered_map& TvmLogDebugSpec() { // Parse and cache the verbosity level map. - const auto* map = + static const auto* map = new std::unordered_map(ParseTvmLogDebugSpec(std::getenv("TVM_LOG_DEBUG"))); return *map; }