SWDEV-292547 - Fix Windows build

This addresses the warning `not all control paths return a value`.

Change-Id: Ibbb5eda9758dca5cc94c8efba9bbc6910362d6ba


[ROCm/clr commit: a89d34d0c9]
This commit is contained in:
Vladislav Sytchenko
2021-07-27 10:52:28 -04:00
والد 9db25e5985
کامیت 8f197606a2
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
@@ -348,7 +348,7 @@ extern int ihipGetDevice();
extern hipError_t ihipMalloc(void** ptr, size_t sizeBytes, unsigned int flags);
extern amd::Memory* getMemoryObject(const void* ptr, size_t& offset);
extern amd::Memory* getMemoryObjectWithOffset(const void* ptr, const size_t size);
extern hipError_t getStreamPerThread(hipStream_t& stream);
extern void getStreamPerThread(hipStream_t& stream);
constexpr bool kOptionChangeable = true;
constexpr bool kNewDevProg = false;
@@ -294,7 +294,7 @@ public:
thread_local stream_per_thread streamPerThreadObj;
// ================================================================================================
hipError_t getStreamPerThread(hipStream_t& stream) {
void getStreamPerThread(hipStream_t& stream) {
if (stream == hipStreamPerThread) {
stream = streamPerThreadObj.get();
}