From 03bfc2eaf9641e1837921d924ba5e84abd6d457a Mon Sep 17 00:00:00 2001 From: Kamil Diedrich Date: Mon, 30 Aug 2021 18:21:08 +0000 Subject: [PATCH] Fix for hash counting Signed-off-by: Kamil Diedrich --- shared/source/compiler_interface/compiler_cache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/source/compiler_interface/compiler_cache.cpp b/shared/source/compiler_interface/compiler_cache.cpp index 67ca2ded8b..36269324ae 100644 --- a/shared/source/compiler_interface/compiler_cache.cpp +++ b/shared/source/compiler_interface/compiler_cache.cpp @@ -38,7 +38,7 @@ const std::string CompilerCache::getCachedFileName(const HardwareInfo &hwInfo, c hash.update("----", 4); hash.update(reinterpret_cast(&hwInfo.platform), sizeof(hwInfo.platform)); hash.update("----", 4); - hash.update(reinterpret_cast(&hwInfo.featureTable), sizeof(hwInfo.featureTable)); + hash.update(reinterpret_cast(&hwInfo.featureTable.packed), sizeof(hwInfo.featureTable.packed)); hash.update("----", 4); hash.update(reinterpret_cast(&hwInfo.workaroundTable), sizeof(hwInfo.workaroundTable)); @@ -48,6 +48,7 @@ const std::string CompilerCache::getCachedFileName(const HardwareInfo &hwInfo, c << std::setw(sizeof(res) * 2) << std::hex << res; + return stream.str(); }