goto buf fixed
This commit is contained in:
@@ -1558,7 +1558,7 @@ void createCheckpoints(SgFile* file, const map<string, CommonBlock*>& commonBloc
|
|||||||
auto nextStLab = new SgLabel(labNum);
|
auto nextStLab = new SgLabel(labNum);
|
||||||
point->setLabel(*nextStLab);
|
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->addComment("! GOTO CP\n");
|
||||||
|
|
||||||
gotoBlock->insertStmtAfter(*new SgGotoStmt(*nextStLab), *gotoBlock);
|
gotoBlock->insertStmtAfter(*new SgGotoStmt(*nextStLab), *gotoBlock);
|
||||||
|
|||||||
Reference in New Issue
Block a user