[flang-commits] [flang] 7eee672 - [flang] Fix build breakage with FLANG_ENABLE_WERROR on (NFC) (#162894)

via flang-commits flang-commits at lists.llvm.org
Sat Oct 11 06:48:06 PDT 2025


Author: Kelvin Li
Date: 2025-10-11T09:48:02-04:00
New Revision: 7eee67202378932d03331ad04e7d07ed4d988381

URL: https://github.com/llvm/llvm-project/commit/7eee67202378932d03331ad04e7d07ed4d988381
DIFF: https://github.com/llvm/llvm-project/commit/7eee67202378932d03331ad04e7d07ed4d988381.diff

LOG: [flang] Fix build breakage with FLANG_ENABLE_WERROR on (NFC) (#162894)

Added: 
    

Modified: 
    flang/lib/Lower/OpenMP/OpenMP.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/OpenMP/OpenMP.cpp b/flang/lib/Lower/OpenMP/OpenMP.cpp
index bd94651919960..444f27471020b 100644
--- a/flang/lib/Lower/OpenMP/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP/OpenMP.cpp
@@ -3383,7 +3383,8 @@ static void genOMPDispatch(lower::AbstractConverter &converter,
     }
   }
 
-  switch (llvm::omp::Directive dir = item->id) {
+  llvm::omp::Directive dir = item->id;
+  switch (dir) {
   case llvm::omp::Directive::OMPD_barrier:
     newOp = genBarrierOp(converter, symTable, semaCtx, eval, loc, queue, item);
     break;


        


More information about the flang-commits mailing list