Skip to content

Commit

Permalink
Remove unnecessary check in cmpFieldAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
zacikpa committed Dec 3, 2023
1 parent c87278d commit a447533
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions diffkemp/simpll/DifferentialFunctionComparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1440,12 +1440,6 @@ int DifferentialFunctionComparator::cmpFieldAccess(
if (!(GEPL && GEPR))
RETURN_WITH_LOG(1);

// If we previously ignored allocation of memory that any of the two GEPs
// point to, fail (cmpValues would compare their pointer operands as equal).
if (hasIgnoredAllocaAsPtrOperand(GEPL)
|| hasIgnoredAllocaAsPtrOperand(GEPR))
RETURN_WITH_LOG(1);

if (!GEPL->hasAllConstantIndices() || !GEPR->hasAllConstantIndices())
RETURN_WITH_LOG(1);

Expand Down

0 comments on commit a447533

Please sign in to comment.