[flang-commits] [flang] 3855c49 - [flang][OpenMP] Fix build break with -Werror

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Tue Jul 22 07:11:38 PDT 2025


Author: Krzysztof Parzyszek
Date: 2025-07-22T09:11:18-05:00
New Revision: 3855c49f28d5ee4b32bf1478d0a50ca191bcf2b6

URL: https://github.com/llvm/llvm-project/commit/3855c49f28d5ee4b32bf1478d0a50ca191bcf2b6
DIFF: https://github.com/llvm/llvm-project/commit/3855c49f28d5ee4b32bf1478d0a50ca191bcf2b6.diff

LOG: [flang][OpenMP] Fix build break with -Werror

llvm-project/flang/lib/Semantics/resolve-directives.cpp:753:7: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  753 |       default:
      |       ^
1 error generated.

https://lab.llvm.org/buildbot/#/builders/53/builds/17917

Added: 
    

Modified: 
    flang/lib/Semantics/resolve-directives.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Semantics/resolve-directives.cpp b/flang/lib/Semantics/resolve-directives.cpp
index addd7d322a4fd..4c3e509b5a36d 100644
--- a/flang/lib/Semantics/resolve-directives.cpp
+++ b/flang/lib/Semantics/resolve-directives.cpp
@@ -750,8 +750,6 @@ class OmpAttributeVisitor : DirectiveAttributeVisitor<llvm::omp::Directive> {
       case parser::OmpMapType::Value::Delete:
         ompFlag = Symbol::Flag::OmpMapDelete;
         break;
-      default:
-        break;
       }
     }
     if (!ompFlag) {


        


More information about the flang-commits mailing list