Skip to content

Commit a58eaf8

Browse files
authored
Merge pull request #1754 from Xinlong-Wu/patch-1
Fix join loop detection for joinSite instead of forkSite
2 parents dd911f3 + 10b8737 commit a58eaf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

svf/lib/MTA/MHP.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@ void ForkJoinAnalysis::handleJoin(const CxtStmt& cts, NodeID rootTid)
824824

825825
if (isAliasedForkJoin(SVFUtil::cast<CallICFGNode>(forkSite), SVFUtil::cast<CallICFGNode>(joinSite)))
826826
{
827-
if (hasJoinLoop(SVFUtil::cast<CallICFGNode>(forkSite)))
827+
if (hasJoinLoop(SVFUtil::cast<CallICFGNode>(joinSite)))
828828
{
829-
LoopBBs& joinLoop = getJoinLoop(SVFUtil::cast<CallICFGNode>(forkSite));
829+
LoopBBs& joinLoop = getJoinLoop(SVFUtil::cast<CallICFGNode>(joinSite));
830830
std::vector<const SVFBasicBlock *> exitbbs;
831831
joinSite->getFun()->getExitBlocksOfLoop(joinSite->getBB(), exitbbs);
832832
while (!exitbbs.empty())
@@ -856,7 +856,7 @@ void ForkJoinAnalysis::handleJoin(const CxtStmt& cts, NodeID rootTid)
856856
/// we process the loop exit
857857
else
858858
{
859-
if (hasJoinLoop(SVFUtil::cast<CallICFGNode>(forkSite)))
859+
if (hasJoinLoop(SVFUtil::cast<CallICFGNode>(joinSite)))
860860
{
861861
std::vector<const SVFBasicBlock*> exitbbs;
862862
joinSite->getFun()->getExitBlocksOfLoop(joinSite->getBB(), exitbbs);

0 commit comments

Comments
 (0)