[clang] c2d8112 - Silence a "not all control paths return a value" diagnostic; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 06:42:01 PDT 2024


Author: Aaron Ballman
Date: 2024-10-14T09:41:42-04:00
New Revision: c2d8112f71d59384d77ac56e278147afc1947ce9

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

LOG: Silence a "not all control paths return a value" diagnostic; NFC

Added: 
    

Modified: 
    clang/include/clang/Basic/OpenACCKinds.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/OpenACCKinds.h b/clang/include/clang/Basic/OpenACCKinds.h
index 3f48ebca708a42..4310c28bc935e8 100644
--- a/clang/include/clang/Basic/OpenACCKinds.h
+++ b/clang/include/clang/Basic/OpenACCKinds.h
@@ -570,6 +570,7 @@ inline StreamTy &printOpenACCGangKind(StreamTy &Out, OpenACCGangKind GK) {
   case OpenACCGangKind::Static:
     return Out << "static";
   }
+  llvm_unreachable("unknown gang kind");
 }
 inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &Out,
                                              OpenACCGangKind Op) {


        


More information about the cfe-commits mailing list