Skip to content

Commit

Permalink
Fix potential NULL pointer use
Browse files Browse the repository at this point in the history
Discovered via a warning from g++-11 - possibly a copy-paste error?

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
  • Loading branch information
keithc-ca committed Nov 18, 2021
1 parent f76321a commit c4c8f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/optimizer/VPConstraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,7 @@ TR::VPConstraint *TR::VPLongConstraint::merge1(TR::VPConstraint *other, OMR::Val
lowVal = otherInt->getLow();
else
lowVal = getLow();
if ((int64_t)otherLong->getHigh() <= (int64_t)getHigh())
if ((int64_t)otherInt->getHigh() <= (int64_t)getHigh())
highVal = getHigh();
else
highVal = otherInt->getHigh();
Expand Down

0 comments on commit c4c8f3d

Please sign in to comment.