error finddecl fixed
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user