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


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to