[clang] 7fe7d9b - Fix MSVC "not all control paths return a value" warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 19 03:51:12 PDT 2020
Author: Simon Pilgrim
Date: 2020-10-19T11:48:31+01:00
New Revision: 7fe7d9b130d4318274eb8b17f15542013e59ca32
URL: https://github.com/llvm/llvm-project/commit/7fe7d9b130d4318274eb8b17f15542013e59ca32
DIFF: https://github.com/llvm/llvm-project/commit/7fe7d9b130d4318274eb8b17f15542013e59ca32.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFCI.
Added:
Modified:
clang/lib/CodeGen/CGExprAgg.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index bf7c1adb6810..9106b90525db 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -1463,6 +1463,7 @@ static bool castPreservesZero(const CastExpr *CE) {
case CK_UncheckedDerivedToBase:
return false;
}
+ llvm_unreachable("Unhandled clang::CastKind enum");
}
/// isSimpleZero - If emitting this value will obviously just cause a store of
More information about the cfe-commits
mailing list