Skip to content

Commit 9bad0db

Browse files
committed
fix(warn): Fix C4740, inline asm supresses optimisation.
Removed the asm as it was only being used for 32bit windows builds anyhow.
1 parent 51837db commit 9bad0db

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Code/Commando/datasafe.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,15 +1374,7 @@ uintptr_t DataSafeClass<T>::Get_Type_Code(void)
13741374
*/
13751375
static uintptr_t instruction_pointer;
13761376
instruction_pointer = 0;
1377-
#if defined(_MSC_VER) && defined(_M_IX86)
1378-
__asm {
1379-
here:
1380-
lea eax,here
1381-
mov [instruction_pointer],eax
1382-
};
1383-
#else
13841377
instruction_pointer = reinterpret_cast<uintptr_t>(DataSafeClass<T>::Get_Type_Code);
1385-
#endif
13861378

13871379
ds_assert(instruction_pointer != 0);
13881380

0 commit comments

Comments
 (0)