[clang] 798e04f - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 10 09:52:28 PDT 2024
Author: Simon Pilgrim
Date: 2024-04-10T17:50:13+01:00
New Revision: 798e04f93769318db857b27f51020e7115e00301
URL: https://github.com/llvm/llvm-project/commit/798e04f93769318db857b27f51020e7115e00301
DIFF: https://github.com/llvm/llvm-project/commit/798e04f93769318db857b27f51020e7115e00301.diff
LOG: Fix MSVC "not all control paths return a value" warning. 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 e191e9e0a5a153..3414df99991701 100644
--- a/clang/include/clang/Basic/OpenACCKinds.h
+++ b/clang/include/clang/Basic/OpenACCKinds.h
@@ -430,6 +430,7 @@ inline StreamTy &printOpenACCDefaultClauseKind(StreamTy &Out,
case OpenACCDefaultClauseKind::Invalid:
return Out << "<invalid>";
}
+ llvm_unreachable("Unknown OpenACCDefaultClauseKind enum");
}
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &Out,
More information about the cfe-commits
mailing list