AOTIR: Fix IRList delete

This commit is contained in:
wannacu committed 2022-07-07 14:39:00 +08:00
1 parent 6a43db8c8f
commit 227462e4d8
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -360,7 +360,7 @@ namespace FEXCore::IR {
else {
// If the IR doesn't need to be retained then we can just delete it now
delete DebugData;
delete IRList;
if (IRList->IsCopy()) delete IRList;
}
}
}
+2 -2
View File
@@ -181,7 +181,7 @@ public:
//size_t ListSize;
stream.write((const char*)&ListSize, sizeof(ListSize));
//uint64_t Flags;
uint64_t WrittenFlags = Flags | FLAG_Shared; //on disk format always has the Shared flag
uint64_t WrittenFlags = FLAG_Shared; //on disk format always has the Shared flag
stream.write((const char*)&WrittenFlags, sizeof(WrittenFlags));
// inline data
@@ -200,7 +200,7 @@ public:
//size_t ListSize;
memcpy(ptr, &ListSize, sizeof(ListSize)); ptr += sizeof(ListSize);
//uint64_t Flags;
uint64_t WrittenFlags = Flags | FLAG_Shared; //on disk format always has the Shared flag
uint64_t WrittenFlags = FLAG_Shared; //on disk format always has the Shared flag
memcpy(ptr, &WrittenFlags, sizeof(WrittenFlags)); ptr += sizeof(WrittenFlags);
// inline data