rocr: supported_isas map elements should persist

The supported_isas static unordered_map was adding stack
allocated Isa objects. Instead, make the objects statically
allocated, as supported_isas itself is.

Change-Id: I23405e218290d48deea6f984f76c57e7b43e314e
This commit is contained in:
Chris Freehill
2024-10-22 18:09:03 -05:00
parent e1865f7b16
commit fd99b74287
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ class IsaRegistry final {
private:
/// @brief IsaRegistry's map type.
typedef std::unordered_map<std::string, Isa> IsaMap;
typedef std::unordered_map<std::string, std::reference_wrapper<const Isa>> IsaMap;
/// @brief Default constructor
IsaRegistry() = delete;