Skip to content

Commit

Permalink
Fix scalar check when fixing up struct return. (dotnet#38644)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarolEidt authored Jul 1, 2020
1 parent b534378 commit 60713cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/coreclr/src/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9237,7 +9237,8 @@ GenTree* Compiler::impFixupStructReturnType(GenTree* op, CORINFO_CLASS_HANDLE re
{
// It is possible that we now have a lclVar of scalar type.
// If so, don't transform it to GT_LCL_FLD.
if (lvaTable[op->AsLclVar()->GetLclNum()].lvType != info.compRetNativeType)
LclVarDsc* varDsc = lvaGetDesc(op->AsLclVarCommon());
if (genActualType(varDsc->TypeGet()) != genActualType(info.compRetNativeType))
{
op->ChangeOper(GT_LCL_FLD);
}
Expand Down
1 change: 0 additions & 1 deletion src/libraries/System.Runtime/tests/System/DoubleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ public static void IsNormal(double d, bool expected)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/38455", TestRuntimes.CoreCLR)]
[InlineData(double.NegativeInfinity, false)] // Negative Infinity
[InlineData(double.MinValue, false)] // Min Negative Normal
[InlineData(-2.2250738585072014E-308, false)] // Max Negative Normal
Expand Down

0 comments on commit 60713cb

Please sign in to comment.