[flang] Remove `default` case for OmpSectionsDirective (only two enum values)
authorJinxin Yang <jinxiny@nvidia.com>
Tue, 28 Jan 2020 21:58:14 +0000 (13:58 -0800)
committerJinxin Yang <jinxiny@nvidia.com>
Tue, 28 Jan 2020 21:58:14 +0000 (13:58 -0800)
Original-commit: flang-compiler/f18@3f37e0dbaf32f1127553be2149915cab1b93cdcf
Reviewed-on: https://github.com/flang-compiler/f18/pull/960

flang/lib/semantics/resolve-names.cpp

index ca8e267..5ab1424 100644 (file)
@@ -5980,7 +5980,6 @@ bool OmpAttributeVisitor::Pre(const parser::OpenMPSectionsConstruct &x) {
   case parser::OmpSectionsDirective::Directive::Sections:
     PushContext(beginDir.source, OmpDirective::SECTIONS);
     break;
-  default: break;
   }
   ClearDataSharingAttributeObjects();
   return true;