changed line numbers to negative for INTENT and INTRINSIC

This commit is contained in:
ALEXks
2025-09-13 20:21:56 +03:00
committed by Egor Mayorov
parent 5998ca49b1
commit b7b17368a3
3 changed files with 4 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ void insertIntrinsicStat(const vector<FuncInfo*>& allFuncInfo)
if (line <= 0)
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
intr->setlineNumber(line);
intr->setlineNumber(getNextNegativeLineNumber());
st->insertStmtBefore(*intr, *func->funcPointer);
}
else
@@ -525,7 +525,7 @@ static void insertIntents(set<string>& identificators, SgStatement* header, cons
if (args.size())
{
SgIntentStmt* intent = new SgIntentStmt(*makeExprList(args), *attr);
intent->setlineNumber(lastDecl->lineNumber());
intent->setlineNumber(getNextNegativeLineNumber());
lastDecl->insertStmtAfter(*intent, (header == lastDecl) ? *header : *lastDecl->controlParent());
}

View File

@@ -1,3 +1,3 @@
#pragma once
#define VERSION_SPF "2442"
#define VERSION_SPF "2443"