diff --git a/FEXCore/Source/Interface/Core/CodeCache.cpp b/FEXCore/Source/Interface/Core/CodeCache.cpp index c8954ce15..28e66be93 100644 --- a/FEXCore/Source/Interface/Core/CodeCache.cpp +++ b/FEXCore/Source/Interface/Core/CodeCache.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -29,6 +30,7 @@ ExecutableFileInfo::ExecutableFileInfo(fextl::unique_ptr Map , FileId(FileId) , Filename(Filename) {} #endif +ExecutableFileInfo::~ExecutableFileInfo() = default; fextl::string CodeMap::GetBaseFilename(const ExecutableFileInfo& MainExecutable, bool AddNombSuffix) { auto FileId = MainExecutable.FileId; diff --git a/FEXCore/include/FEXCore/Core/CodeCache.h b/FEXCore/include/FEXCore/Core/CodeCache.h index 1b9b0dd3e..5e5caa140 100644 --- a/FEXCore/include/FEXCore/Core/CodeCache.h +++ b/FEXCore/include/FEXCore/Core/CodeCache.h @@ -8,7 +8,6 @@ #include #include #include -#include #include #include @@ -32,6 +31,8 @@ enum class GuestRelocationType : uint32_t { Rel32, Rel64 }; // Generic information associated with an executable file. struct ExecutableFileInfo { + ~ExecutableFileInfo(); + #if __clang_major__ < 16 // Workaround for broken aggregate-initialization with std::piecewise_construct ExecutableFileInfo(fextl::unique_ptr, uint64_t, fextl::string);