Fix static initialization order

Change-Id: I1d51e150b526d050b988fe5a422644667a561cd7
此提交包含在:
Cordell Bloor authored and David Yat Sin committed 2023-02-09 13:51:08 -05:00
1 父節點 59685f4492
當前提交 5873a78d58
2 file changed
+6 -6

No files matched your search

-6
查看文件
@@ -57,12 +57,6 @@ const HsaApiTable* hsa_table_interface_get_table() {
return hsaApiTable;
}
class Init {
public:
Init() { rocr::core::LoadInitialHsaApiTable(); }
};
static Init LinkAtLoadOrFirstTranslationUnitAccess;
// Pass through stub functions
hsa_status_t HSA_API hsa_init() { return coreApiTable->hsa_init_fn(); }
+6
查看文件
@@ -406,3 +406,9 @@ void LoadInitialHsaApiTable() {
} // namespace core
} // namespace rocr
class Init {
public:
Init() { rocr::core::LoadInitialHsaApiTable(); }
};
static Init LinkAtLoadOrFirstTranslationUnitAccess;