[flang-commits] [flang] 6c3ae44 - [Flang] Fix for CI failure, Remove default case

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Fri Aug 13 10:07:08 PDT 2021


Author: Kiran Chandramohan
Date: 2021-08-13T18:06:33+01:00
New Revision: 6c3ae442ac9c2d740947d11efe870438c1db83b8

URL: https://github.com/llvm/llvm-project/commit/6c3ae442ac9c2d740947d11efe870438c1db83b8
DIFF: https://github.com/llvm/llvm-project/commit/6c3ae442ac9c2d740947d11efe870438c1db83b8.diff

LOG: [Flang] Fix for CI failure, Remove default case

Remove default case when all the enum values are covered in switch
statements.

Added: 
    

Modified: 
    flang/lib/Semantics/check-omp-structure.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index a5eefe2b3450..366a6506a8ec 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -981,8 +981,6 @@ void OmpStructureChecker::CheckCancellationNest(
         eligibleCancellation = true;
       }
       break;
-    default:
-      break;
     }
     if (!eligibleCancellation) {
       context_.Say(source,
@@ -1028,8 +1026,6 @@ void OmpStructureChecker::CheckCancellationNest(
           parser::ToUpperCaseLetters(
               parser::OmpCancelType::EnumToString(type)));
       break;
-    default:
-      break;
     }
   }
 }


        


More information about the flang-commits mailing list