Fix assertion when _GLIBCXX_ASSERTIONS is enabled
One some platforms, e.g Arch Linux, -D_GLIBCXX_ASSERTIONS compile flag
is enabled by default, causing a runtime assertion.
Avoid assertion by using std::vector accessor function data().
Change-Id: I118cdf102c3e353f32c618823e363ee1059f3453
[ROCm/ROCR-Runtime commit: 511855d344]
This commit is contained in:
@@ -1659,7 +1659,7 @@ void Runtime::LoadTools() {
|
||||
}
|
||||
if (!ld(&hsa_api_table_.hsa_api,
|
||||
hsa_api_table_.hsa_api.version.major_id,
|
||||
failed.size(), &failed[0])) {
|
||||
failed.size(), failed.data())) {
|
||||
failed.push_back(lib.name_.c_str());
|
||||
os::CloseLib(tool);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user