[flang-commits] [flang] b92e0a3 - [flang][cuda] Fix warning in switch

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Feb 8 10:23:57 PST 2024


Author: Valentin Clement
Date: 2024-02-08T10:23:48-08:00
New Revision: b92e0a31dab5917f31b4672430004add34b5e775

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

LOG: [flang][cuda] Fix warning in switch

Added: 
    

Modified: 
    flang/lib/Lower/ConvertVariable.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/ConvertVariable.cpp b/flang/lib/Lower/ConvertVariable.cpp
index f761e14e64794..d57bdd448da3f 100644
--- a/flang/lib/Lower/ConvertVariable.cpp
+++ b/flang/lib/Lower/ConvertVariable.cpp
@@ -1603,7 +1603,7 @@ fir::CUDAAttributeAttr Fortran::lower::translateSymbolCUDAAttribute(
       break;
     case Fortran::common::CUDADataAttr::Texture:
       // Obsolete attribute
-      break;
+      return {};
     }
 
     return fir::CUDAAttributeAttr::get(mlirContext, attr);


        


More information about the flang-commits mailing list