Fix MSVC "not all control paths return a value" warning
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 19 Aug 2022 16:37:26 +0000 (17:37 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 19 Aug 2022 16:37:37 +0000 (17:37 +0100)
clang/lib/AST/Interp/ByteCodeExprGen.cpp

index 8f53f0e..be2c484 100644 (file)
@@ -147,6 +147,7 @@ bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) {
   default:
     assert(false && "Cast not implemented");
   }
+  llvm_unreachable("Unhandled clang::CastKind enum");
 }
 
 template <class Emitter>