Skip to content

Commit

Permalink
Merge pull request #1835 from wannacu/main
Browse files Browse the repository at this point in the history
AOTIR: Fix IRList delete
  • Loading branch information
Sonicadvance1 authored Jul 7, 2022
2 parents aec5b21 + 227462e commit fb41ba1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion External/FEXCore/Source/Interface/IR/AOTIR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions External/FEXCore/include/FEXCore/IR/IntrusiveIRList.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class IRListView final {
//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
Expand All @@ -200,7 +200,7 @@ class IRListView final {
//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
Expand Down

0 comments on commit fb41ba1

Please sign in to comment.