Skip to content

Commit 6f21abb

Browse files
authored
Merge pull request #75 from Tai7sy/fix_constexpr_msvc
fix #74
2 parents 5b0caf5 + 34f5502 commit 6f21abb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

VTIL-Architecture/arch/register_desc.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ namespace vtil
124124
//
125125
register_flag flags = ( register_flag ) 0;
126126

127+
// unused, padding for msvc bug, see https://github.com/vtil-project/VTIL-Core/issues/74
128+
uint32_t _pad0 = 0;
129+
127130
// Arbitrary identifier, is intentionally not universally unique to let ids of user registers make use
128131
// of the full 64-bit range as otherwise we'd have to reserve some magic numbers for flags and stack pointer.
129132
// Due to this reason, flags should also be compared when doing comparison.

0 commit comments

Comments
 (0)