3 Commits

View File

@@ -825,7 +825,7 @@ void createCheckpoints(SgFile* file, const map<string, CommonBlock*>& commonBloc
{
func = file->functions(z);
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();
//cp place was found