Skip to content

Commit

Permalink
refactored getGepObjAddrs: remove if statement for nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanLin520 committed Oct 27, 2024
1 parent 6db9e72 commit 47be4ab
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions svf/lib/AE/Core/AbstractState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ AddressValue AbstractState::getGepObjAddrs(u32_t pointer, IntervalValue offset)
AbstractValue addrs = (*this)[pointer];
for (const auto& addr : addrs.getAddrs())
{
if (isNullPtr(addr)) {
gepAddrs.insert(BlackHoleAddr);
continue;
}
s64_t baseObj = AbstractState::getInternalID(addr);
assert(SVFUtil::isa<ObjVar>(PAG::getPAG()->getGNode(baseObj)) && "Fail to get the base object address!");
NodeID gepObj = PAG::getPAG()->getGepObjVar(baseObj, i);
Expand Down

0 comments on commit 47be4ab

Please sign in to comment.