Skip to content

Commit

Permalink
remove redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jumormt committed Jan 9, 2025
1 parent d90c672 commit cc13d18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions svf-llvm/tools/Example/svf-ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ void dummyVisit(const VFGNode* node)
*/
void traverseOnVFG(const SVFG* vfg, const SVFVar* svfval)
{
PAGNode* pNode = const_cast<PAGNode*>(svfval);
if (!vfg->hasDefSVFGNode(pNode))
if (!vfg->hasDefSVFGNode(svfval))
return;
const VFGNode* vNode = vfg->getDefSVFGNode(pNode);
const VFGNode* vNode = vfg->getDefSVFGNode(svfval);
FIFOWorkList<const VFGNode*> worklist;
Set<const VFGNode*> visited;
worklist.push(vNode);
Expand Down

0 comments on commit cc13d18

Please sign in to comment.