Skip to content

Commit

Permalink
Merge pull request #51 from 0xdaryl/fixvp
Browse files Browse the repository at this point in the history
(0.20.0) Fix VP constraint merging for multi-dimensional arrays
  • Loading branch information
pshipton authored Mar 28, 2020
2 parents fbaaf21 + b9e9d72 commit ffe8de8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/optimizer/VPConstraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3495,7 +3495,10 @@ TR::VPConstraint *TR::VPFixedClass::intersect1(TR::VPConstraint *other, OMR::Val
}

if ((*thisSig != 'L') && ((*otherSig == 'L') || (*otherSig == '[')))
return NULL;
{
if (! ((*thisSig == '[') && (otherLen == 18 && !strncmp(otherSig, "Ljava/lang/Object;", 18))) )
return NULL;
}

// retain the fact that its a fixed type
return this;
Expand Down

0 comments on commit ffe8de8

Please sign in to comment.