summaryrefslogtreecommitdiff
path: root/src/jit/morph.cpp
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2018-12-18 15:13:07 -0800
committerCarol Eidt <carol.eidt@microsoft.com>2018-12-18 15:13:07 -0800
commitba3b4025a6974e5266181760003cf7552f8ae199 (patch)
tree3e09bb7cc61726988271cbe349c25253d07838cb /src/jit/morph.cpp
parent05d3e8eac6cfd340424efb8f906b8cdb8e8a6bfe (diff)
downloadcoreclr-ba3b4025a6974e5266181760003cf7552f8ae199.tar.gz
coreclr-ba3b4025a6974e5266181760003cf7552f8ae199.tar.bz2
coreclr-ba3b4025a6974e5266181760003cf7552f8ae199.zip
Transform SIMD8 to FIELD_LIST if promoted
Fix #21546
Diffstat (limited to 'src/jit/morph.cpp')
-rw-r--r--src/jit/morph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp
index 0a6a6fc0b1..ebe41052b2 100644
--- a/src/jit/morph.cpp
+++ b/src/jit/morph.cpp
@@ -4174,7 +4174,7 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call)
#if defined(_TARGET_X86_)
if (isStructArg)
{
- GenTree* lclNode = fgIsIndirOfAddrOfLocal(argx);
+ GenTree* lclNode = argx->OperIs(GT_LCL_VAR) ? argx : fgIsIndirOfAddrOfLocal(argx);
if ((lclNode != nullptr) &&
(lvaGetPromotionType(lclNode->AsLclVarCommon()->gtLclNum) == Compiler::PROMOTION_TYPE_INDEPENDENT))
{