mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
Remove unsound caching in LanguageCategory
Analogous to https://reviews.llvm.org/D71233 it is not safe to cache something that depends on the actual ValueObject in a cache then keys only off the type name. Differential Revision: https://reviews.llvm.org/D71297
This commit is contained in:
@@ -110,10 +110,6 @@ bool LanguageCategory::GetHardcoded(FormatManager &fmt_mgr,
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (match_data.GetTypeForCache() &&
|
||||
(!retval_sp || !retval_sp->NonCacheable())) {
|
||||
m_format_cache.Set(match_data.GetTypeForCache(), retval_sp);
|
||||
}
|
||||
return (bool)retval_sp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user