Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/jit/simd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ const SIMDIntrinsicInfo* Compiler::getSIMDIntrinsicInfo(CORINFO_CLASS_HANDLE* in
// We don't check anything in that case.
if (!isThisPtr || !isNewObj)
{
GenTreePtr arg = impStackTop(stackIndex).val;
GenTreePtr arg = impStackTop(stackIndex).val;
var_types argType = arg->TypeGet();

var_types expectedArgType;
if (argIndex < fixedArgCnt)
Expand All @@ -540,14 +541,14 @@ const SIMDIntrinsicInfo* Compiler::getSIMDIntrinsicInfo(CORINFO_CLASS_HANDLE* in
{
// The type of the argument will be genActualType(*baseType).
expectedArgType = genActualType(*baseType);
argType = genActualType(argType);
}
}
else
{
expectedArgType = *baseType;
}

var_types argType = arg->TypeGet();
if (!isThisPtr && argType == TYP_I_IMPL)
{
// The reference implementation has a constructor that takes a pointer.
Expand Down