fixed load and save blocks insert

This commit is contained in:
2024-03-20 10:08:06 +03:00
parent 0f39f6474d
commit 5f69d9c39d

View File

@@ -825,7 +825,7 @@ void createCheckpoints(SgFile* file, const map<string, CommonBlock*>& commonBloc
{ {
func = file->functions(z); func = file->functions(z);
point = func->lexNext(); point = func->lexNext();
while (point && point->lineNumber() < cpLine && point != func->lastNodeOfStmt() && point->variant() != CONTAINS_STMT) while (point && ((point->fileName() != file->filename()) || (point->lineNumber() < cpLine)) && point != func->lastNodeOfStmt() && point->variant() != CONTAINS_STMT)
point = point->lexNext(); point = point->lexNext();
//cp place was found //cp place was found