diff --git a/flang/lib/Semantics/check-directive-structure.h b/flang/lib/Semantics/check-directive-structure.h index 1de0b3b9d26b1..29996a75823d7 100644 --- a/flang/lib/Semantics/check-directive-structure.h +++ b/flang/lib/Semantics/check-directive-structure.h @@ -36,8 +36,8 @@ template class NoBranchingEnforce { parser::CharBlock sourcePosition, D directive, std::string &&upperCaseDirName) : context_{context}, sourcePosition_{sourcePosition}, - currentDirective_{directive}, upperCaseDirName_{ - std::move(upperCaseDirName)} {} + upperCaseDirName_{std::move(upperCaseDirName)}, currentDirective_{ + directive} {} template bool Pre(const T &) { return true; } template void Post(const T &) {} diff --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp index 583021b5c701b..a5b935ed2173e 100644 --- a/flang/lib/Semantics/check-omp-structure.cpp +++ b/flang/lib/Semantics/check-omp-structure.cpp @@ -104,6 +104,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPBlockConstruct &x) { switch (beginDir.v) { case llvm::omp::OMPD_parallel: CheckNoBranching(block, llvm::omp::OMPD_parallel, beginDir.source); + break; default: break; }