From 966448c53bae347cd7795cd65ba5635fcac515cd Mon Sep 17 00:00:00 2001 From: Alex Xie Date: Wed, 20 May 2020 13:13:55 -0400 Subject: [PATCH] Fix compile error in certain version of GCC Change-Id: I27f021db908bf114a685427a47cd9f0d6b2e5693 --- rocclr/device/device.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rocclr/device/device.hpp b/rocclr/device/device.hpp index 1a3cc4744f..1488536688 100644 --- a/rocclr/device/device.hpp +++ b/rocclr/device/device.hpp @@ -1404,7 +1404,10 @@ class Device : public RuntimeObject { return nullptr; } - virtual bool IpcDetach(amd::Memory& memory) const { ShouldNotReachHere(); } + virtual bool IpcDetach(amd::Memory& memory) const { + ShouldNotReachHere(); + return false; + } //! Return private global device context for P2P allocations amd::Context& GlbCtx() const { return *glb_ctx_; }