goto buf fixed

This commit is contained in:
2024-05-05 15:40:39 +03:00
parent 025113211b
commit b4f8f223eb

View File

@@ -1558,7 +1558,7 @@ void createCheckpoints(SgFile* file, const map<string, CommonBlock*>& commonBloc
auto nextStLab = new SgLabel(labNum);
point->setLabel(*nextStLab);
SgStatement* gotoBlock = new SgIfStmt(*new SgVarRefExp(loadS[0]) == *new SgValueExp(labNum));
SgStatement* gotoBlock = new SgIfStmt(*new SgVarRefExp(loadS[0]) == *new SgValueExp(1));
gotoBlock->addComment("! GOTO CP\n");
gotoBlock->insertStmtAfter(*new SgGotoStmt(*nextStLab), *gotoBlock);