fixed load and save blocks insert
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user