error finddecl fixed

This commit is contained in:
2023-12-27 12:54:00 +03:00
parent e51f9643a4
commit 3ddce6ab33

View File

@@ -48,7 +48,7 @@ static void findDecls(SgExpression* ex, vector<SgExpression*>& local, const map<
localParams.find(ex->symbol()->identifier()) == localParams.end())
{
if (added.find(ex->symbol()->identifier()) == added.end() &&
IntentInadded.find(ex->symbol()->identifier()) == IntentInadded.end())
IntentInParams.find(ex->symbol()->identifier()) == IntentInParams.end())
{
added.insert(ex->symbol()->identifier());
local.push_back(ex);
@@ -60,7 +60,7 @@ static void findDecls(SgExpression* ex, vector<SgExpression*>& local, const map<
{
if (ex->symbol()->variant() == VARIABLE_NAME &&
added.find(ex->symbol()->identifier()) == added.end() &&
IntentInadded.find(ex->symbol()->identifier()) == IntentInadded.end())
IntentInParams.find(ex->symbol()->identifier()) == IntentInParams.end())
{
added.insert(ex->symbol()->identifier());
local.push_back(new SgArrayRefExp(*ex->symbol()));