Fix MSVC "not all control paths return a value" warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 19 Oct 2020 10:15:38 +0000 (11:15 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 19 Oct 2020 10:48:31 +0000 (11:48 +0100)
clang/lib/CodeGen/CGExprAgg.cpp

index bf7c1ad..9106b90 100644 (file)
@@ -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