From e01a24d8b5d7d44b273ef10fea7b9d9ec6c6a5f4 Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Wed, 14 Jul 2021 17:35:26 -0400 Subject: [PATCH] SWDEV-295144 - Typecast arena mem ptr(0x2) to void*, otherwise results in wrong constructor overload. Change-Id: I433b70dc70377ae0c5f9b29818703e1ac9d95053 --- rocclr/platform/memory.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocclr/platform/memory.hpp b/rocclr/platform/memory.hpp index 4edd7e2827..1b842dee3c 100644 --- a/rocclr/platform/memory.hpp +++ b/rocclr/platform/memory.hpp @@ -650,7 +650,8 @@ class LiquidFlashFile : public RuntimeObject { class ArenaMemory: public Buffer { public: ArenaMemory(Context& context) - : Buffer(context, 0, std::numeric_limits::max(), kArenaMemoryPtr) {} + : Buffer(context, 0, std::numeric_limits::max(), + reinterpret_cast(kArenaMemoryPtr)) {} }; } // namespace amd