Fix build failure.

- Also fix `-Wreorder` warning. NFC.

Change-Id: I766fdc622c9107f901a55498bdc8fef3d821d1b7


[ROCm/clr commit: 12fcfee41d]
This commit is contained in:
Michael LIAO
2020-05-05 13:15:56 -04:00
zatwierdzone przez Vladislav Sytchenko
rodzic b785d25506
commit 0e2c6ebac3
2 zmienionych plików z 4 dodań i 4 usunięć
@@ -234,8 +234,8 @@ bool HSAILKernel::init() {
}
uint32_t wavefront_size = 0;
if (HSA_STATUS_SUCCESS !=
hsa_agent_get_info(program()->hsaDevice(), HSA_AGENT_INFO_WAVEFRONT_SIZE, &wavefront_size)) {
hsa_status_t hsaStatus = hsa_agent_get_info(program()->hsaDevice(), HSA_AGENT_INFO_WAVEFRONT_SIZE, &wavefront_size);
if (HSA_STATUS_SUCCESS != hsaStatus) {
DevLogPrintfError("Could not get Wave Info Size: %d, failed with hsa_status: %d \n",
errorCode, hsaStatus);
return false;
@@ -143,8 +143,8 @@ class Program : public RuntimeObject {
Program(Context& context, Language language = Binary,
const void* mmap_ptr = nullptr, const size_t mmap_size = 0)
: context_(context), language_(language),
mmap_({mmap_ptr, mmap_size}),
symbolTable_(NULL) {}
symbolTable_(NULL),
mmap_({mmap_ptr, mmap_size}) {}
//! Returns context, associated with the current program.
const Context& context() const { return context_(); }