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(); }