[flang-commits] [flang] a596659 - [flang][OpenMP][FIX] Fix function to check nesting level of current directive.
Arnamoy Bhattacharyya via flang-commits
flang-commits at lists.llvm.org
Fri Mar 12 12:02:25 PST 2021
Author: Arnamoy Bhattacharyya
Date: 2021-03-12T15:01:47-05:00
New Revision: a59665930b87d7510002dcf1f292b290673a47d3
URL: https://github.com/llvm/llvm-project/commit/a59665930b87d7510002dcf1f292b290673a47d3
DIFF: https://github.com/llvm/llvm-project/commit/a59665930b87d7510002dcf1f292b290673a47d3.diff
LOG: [flang][OpenMP][FIX] Fix function to check nesting level of current directive.
Added:
Modified:
flang/lib/Semantics/check-directive-structure.h
Removed:
################################################################################
diff --git a/flang/lib/Semantics/check-directive-structure.h b/flang/lib/Semantics/check-directive-structure.h
index c68272330f95..3ff4462eeaed 100644
--- a/flang/lib/Semantics/check-directive-structure.h
+++ b/flang/lib/Semantics/check-directive-structure.h
@@ -236,7 +236,7 @@ class DirectiveStructureChecker : public virtual BaseChecker {
return nullptr;
}
- bool CurrentDirectiveIsNested() { return dirContext_.size() > 0; };
+ bool CurrentDirectiveIsNested() { return dirContext_.size() > 1; };
void SetClauseSets(D dir) {
dirContext_.back().allowedClauses = directiveClausesMap_[dir].allowed;
More information about the flang-commits
mailing list