mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
Merge pull request #22470 from hrydgard/mipsstate-standard-layout
Make MIPSState standard-layout again, so offsetof is valid
This commit is contained in:
1 file changed
+6
-1
+6
-1
@@ -20,6 +20,7 @@
|
||||
#include "ppsspp_config.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
@@ -289,12 +290,16 @@ public:
|
||||
|
||||
void ProcessPendingInvalidates();
|
||||
|
||||
private:
|
||||
// Don't make private, see the static_assert below.
|
||||
// Doesn't need save stating.
|
||||
std::vector<PendingCacheOperation> pendingInvalidates_;
|
||||
bool invalidateAll_ = false;
|
||||
};
|
||||
|
||||
// Access control ('private') break standard layout. Let's not allow it, to avoid excessive
|
||||
// compiler warnings.
|
||||
static_assert(std::is_standard_layout_v<MIPSState>, "the JITs use offsetof on MIPSState");
|
||||
|
||||
class MIPSDebugInterface;
|
||||
|
||||
// The one we are compiling or running currently
|
||||
|
||||
Reference in new issue
Block a user