Skip to content

Commit 255be51

Browse files
committed
[Flang][OpenMP] Fix missing dereference in isConstructWithTopLevelTarget
This was causing false negatives, yielding incorrect programs.
1 parent 2959051 commit 255be51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/OpenMP/DataSharingProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ bool DataSharingProcessor::OMPConstructSymbolVisitor::isSymbolDefineBy(
4747
static bool isConstructWithTopLevelTarget(lower::pft::Evaluation &eval) {
4848
const auto *ompEval = eval.getIf<parser::OpenMPConstruct>();
4949
if (ompEval) {
50-
auto dir = parser::omp::GetOmpDirectiveName(ompEval).v;
50+
auto dir = parser::omp::GetOmpDirectiveName(*ompEval).v;
5151
if (llvm::omp::topTargetSet.test(dir))
5252
return true;
5353
}

0 commit comments

Comments
 (0)