fixed merge

This commit is contained in:
ALEXks
2023-10-28 10:29:29 +03:00
parent ec2975a2ed
commit d076333a53
2 changed files with 4 additions and 4 deletions

View File

@@ -647,7 +647,7 @@ vector<OmpDir> parseOmpDirs(void* stIn, const set<string> &globalPriv, bool forD
char* lineS = st->comments();
if (!lineS)
return resultAll;
vector<string> split;
splitString(lineS, '\n', split);

View File

@@ -937,7 +937,7 @@ static vector<vector<FixedSubscript>> checkImplicitDirectUsage(Context* ctx)
if (funcInfo->funcParams.isArgOut(i) || // implicit direct usage
callArg->lhs() == nullptr) // reference to whole array
{
auto& mask = getFixedSubscriptsVector((SgArrayRefExp*)callArg, ctx->dimensionsNum);
auto mask = getFixedSubscriptsVector((SgArrayRefExp*)callArg, ctx->dimensionsNum);
fixedSubscripts.push_back(mask);
addMessageUsageInFunctionCall(ctx->messages, getDimensionVarName(ctx->arraySymbol, mask),
procName, ctx->loop->lineNum, st->lineNumber());
@@ -994,7 +994,7 @@ static void checkIndirectUsage(Context* ctx, FuncInfo* curFunc, vector<Variable*
vector<SgArrayRefExp*> directArrayRefs = getDirectArrayRefs(varUse.getFunction(), varUse.getUseS());
for (auto arrayRef : directArrayRefs)
{
auto& mask = getFixedSubscriptsVector(arrayRef, ctx->dimensionsNum);
auto mask = getFixedSubscriptsVector(arrayRef, ctx->dimensionsNum);
indirectUsageMasks.push_back(mask);
addMessageUsageInFunctionCall(ctx->messages, getDimensionVarName(ctx->arraySymbol, mask),
curFunc->funcName, ctx->loop->lineNum, ctx->loop->lineNum);
@@ -1674,7 +1674,7 @@ void removePrivatesAnalysis(vector<LoopGraph*>& loopGraphs,
context.dimensionsNum = getDimension(arrayToRemove);
context.arraySymbol = arrayToRemove;
auto& filterMasks = checkImplicitAndIndirectUsage(&context);
auto filterMasks = checkImplicitAndIndirectUsage(&context);
filterArrayRefs(&context, arrayRefs, filterMasks);
context.explicitArrayRefs.swap(arrayRefs);