diff options
Diffstat (limited to 'src/jit/compiler.hpp')
-rw-r--r-- | src/jit/compiler.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jit/compiler.hpp b/src/jit/compiler.hpp index c4a50c0fa9..da00abcd03 100644 --- a/src/jit/compiler.hpp +++ b/src/jit/compiler.hpp @@ -1797,9 +1797,8 @@ inline unsigned Compiler::lvaGrabTempWithImplicitUse(bool shortLifetime DEBUGARG // address-exposed -- DoNotEnregister should suffice? lvaSetVarAddrExposed(lclNum); - // We need lvRefCnt to be non-zero to prevent various asserts from firing. - varDsc->setLvRefCnt(1); - varDsc->setLvRefCntWtd(BB_UNITY_WEIGHT); + // Note the implicit use + varDsc->lvImplicitlyReferenced = 1; return lclNum; } |