From ef74ed68fdb108ed9432c40eb2acae4bf7c35bd3 Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Fri, 15 Dec 2017 20:30:58 -0800 Subject: Clean up clrjit from using sizeof(void*) when meant TARGET_POINTER_SIZE (#15524) --- src/jit/compiler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jit/compiler.hpp') diff --git a/src/jit/compiler.hpp b/src/jit/compiler.hpp index 2340780531..096c81d10a 100644 --- a/src/jit/compiler.hpp +++ b/src/jit/compiler.hpp @@ -2131,7 +2131,7 @@ inline void LclVarDsc::addPrefReg(regMaskTP regMask, Compiler* comp) #ifdef _TARGET_ARM_ // Don't set a preferred register for a TYP_STRUCT that takes more than one register slot - if ((lvType == TYP_STRUCT) && (lvSize() > sizeof(void*))) + if ((lvType == TYP_STRUCT) && (lvSize() > REGSIZE_BYTES)) return; #endif -- cgit v1.2.3