From 067ff5f823a0cfabe49699a0ca2f1afb070de5fa Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 30 Apr 2018 13:34:32 -0400 Subject: [PATCH] P4 to Git Change 1547825 by cpaquot@cpaquot-ocl-lc-lnx on 2018/04/30 11:59:32 SWDEV-145570 - [HIP] Fixed release build Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#13 edit [ROCm/clr commit: bc34be99d20643b83b7b9e2a9d8613b1cef9a23d] --- projects/clr/hipamd/api/hip/hip_memory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/clr/hipamd/api/hip/hip_memory.cpp b/projects/clr/hipamd/api/hip/hip_memory.cpp index 23a631881f..02c5720df4 100644 --- a/projects/clr/hipamd/api/hip/hip_memory.cpp +++ b/projects/clr/hipamd/api/hip/hip_memory.cpp @@ -83,7 +83,7 @@ hipError_t hipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind return hipErrorOutOfMemory; } - amd::Command* command; + amd::Command* command = nullptr; amd::Command::EventWaitList waitList; amd::Memory* memory; @@ -568,7 +568,7 @@ hipError_t hipMemcpyToArray(hipArray* dstArray, size_t wOffset, size_t hOffset, return hipErrorOutOfMemory; } - amd::Command* command; + amd::Command* command = nullptr; amd::Command::EventWaitList waitList; amd::Memory* memory; @@ -613,7 +613,7 @@ hipError_t hipMemcpyFromArray(void* dst, hipArray_const_t srcArray, size_t wOffs return hipErrorOutOfMemory; } - amd::Command* command; + amd::Command* command = nullptr; amd::Command::EventWaitList waitList; amd::Memory* memory;