fixed pure
This commit is contained in:
@@ -911,7 +911,9 @@ static void fillFunctionPureStatus(SgStatement *header, FuncInfo *currInfo, vect
|
||||
if (currInfo->commonBlocks.size() == 0)
|
||||
{
|
||||
lines.clear();
|
||||
bool has = hasThisIds(header, lines, { DATA_DECL, SAVE_DECL, USE_STMT });
|
||||
bool has = hasThisIds(header, lines, { DATA_DECL, SAVE_DECL, USE_STMT,
|
||||
WRITE_STAT, READ_STAT, OPEN_STAT, CLOSE_STAT,
|
||||
PRINT_STAT, STOP_STAT, PAUSE_NODE });
|
||||
if (!has || declaratedAsPure)
|
||||
currInfo->isPure = true;
|
||||
else
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#define VERSION_SPF "2269"
|
||||
#define VERSION_SPF "2270"
|
||||
|
||||
Reference in New Issue
Block a user