Skip to content

Commit

Permalink
Merge pull request #7483 from kevindean12/remove-unneeded-assert
Browse files Browse the repository at this point in the history
Remove no longer valid assert in OMRMemoryReference
  • Loading branch information
0xdaryl authored Oct 8, 2024
2 parents 83ba223 + ece60a1 commit d68a419
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/x/codegen/OMRMemoryReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,6 @@ OMR::X86::MemoryReference::estimateBinaryLength(TR::CodeGenerator *cg)

case 5:
displacement = self()->getDisplacement();
TR_ASSERT(IS_32BIT_SIGNED(displacement), "64-bit displacement should have been replaced in TR_AMD64MemoryReference::generateBinaryEncoding");
if (displacement == 0 &&
!base->needsDisp() &&
!base->needsSIB() &&
Expand Down Expand Up @@ -1033,7 +1032,6 @@ OMR::X86::MemoryReference::estimateBinaryLength(TR::CodeGenerator *cg)

case 7:
displacement = self()->getDisplacement();
TR_ASSERT(IS_32BIT_SIGNED(displacement), "64-bit displacement should have been replaced in TR_AMD64MemoryReference::generateBinaryEncoding");
if (displacement >= -128 &&
displacement <= 127 &&
!self()->isForceWideDisplacement())
Expand Down

0 comments on commit d68a419

Please sign in to comment.