diff options
author | Joseph Tremoulet <jotrem@microsoft.com> | 2017-04-07 13:55:42 -0400 |
---|---|---|
committer | Joseph Tremoulet <jotrem@microsoft.com> | 2017-05-15 20:01:19 -0400 |
commit | fe879dbfd29a6ec1d52f2a2448e595ec99ba2882 (patch) | |
tree | 0ce03c930bd854793ed6f20775fb9a81ffcd5db4 /src/jit/compiler.h | |
parent | 12fbd11803b44086273e3a82c766efc1c8dee864 (diff) | |
download | coreclr-fe879dbfd29a6ec1d52f2a2448e595ec99ba2882.tar.gz coreclr-fe879dbfd29a6ec1d52f2a2448e595ec99ba2882.tar.bz2 coreclr-fe879dbfd29a6ec1d52f2a2448e595ec99ba2882.zip |
Fix assertion in lvaIsImplicitByRefLocal
The check for struct types needs to match the check in
lvMarkImplicitByRefLocals, which uses varTypeIsStruct (and therefore
includes SIMD types), instead of just using TYP_STRUCT.
Diffstat (limited to 'src/jit/compiler.h')
-rw-r--r-- | src/jit/compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/compiler.h b/src/jit/compiler.h index bc4ec93d9d..81adcf026f 100644 --- a/src/jit/compiler.h +++ b/src/jit/compiler.h @@ -2668,7 +2668,7 @@ public: LclVarDsc* varDsc = &(lvaTable[varNum]); if (varDsc->lvIsParam && varDsc->lvIsTemp) { - assert((varDsc->lvType == TYP_STRUCT) || (varDsc->lvType == TYP_BYREF)); + assert(varTypeIsStruct(varDsc) || (varDsc->lvType == TYP_BYREF)); return true; } #endif // defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_) |