From 34f5502b0b66c90f240687faa57af07baa8b88f9 Mon Sep 17 00:00:00 2001 From: windy <19060@qq.com> Date: Wed, 13 Jul 2022 13:35:18 +0800 Subject: [PATCH] fix https://github.com/vtil-project/VTIL-Core/issues/74 --- VTIL-Architecture/arch/register_desc.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VTIL-Architecture/arch/register_desc.hpp b/VTIL-Architecture/arch/register_desc.hpp index 1d834f92..7872b6a0 100644 --- a/VTIL-Architecture/arch/register_desc.hpp +++ b/VTIL-Architecture/arch/register_desc.hpp @@ -124,6 +124,9 @@ namespace vtil // register_flag flags = ( register_flag ) 0; + // unused, padding for msvc bug, see https://github.com/vtil-project/VTIL-Core/issues/74 + uint32_t _pad0 = 0; + // Arbitrary identifier, is intentionally not universally unique to let ids of user registers make use // of the full 64-bit range as otherwise we'd have to reserve some magic numbers for flags and stack pointer. // Due to this reason, flags should also be compared when doing comparison.