Skip to content

Commit

Permalink
Add workaround for dotnet#1128
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed May 15, 2021
1 parent 8fbe7d3 commit ae75bf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/jit/valuenum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8144,6 +8144,7 @@ void Compiler::fgValueNumberTree(GenTree* tree)
// Are we dereferencing the method table slot of some newly allocated object?
//
bool wasNewobj = false;
#if 0 // TODO: https://github.com/dotnet/runtimelab/issues/1128
if ((oper == GT_IND) && (addr->TypeGet() == TYP_REF) && (tree->TypeGet() == TYP_I_IMPL))
{
VNFuncApp funcApp;
Expand All @@ -8156,6 +8157,7 @@ void Compiler::fgValueNumberTree(GenTree* tree)
wasNewobj = true;
}
}
#endif

if (!wasNewobj)
{
Expand Down

0 comments on commit ae75bf0

Please sign in to comment.