Author: rksimon
Date: Wed Jul  3 02:54:25 2019
New Revision: 365012

URL: http://llvm.org/viewvc/llvm-project?rev=365012&view=rev
Log:
Fix MSVC "not all control paths return a value" warnings. NFCI.

Modified:
    cfe/trunk/lib/AST/ExprConstant.cpp

Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=365012&r1=365011&r2=365012&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Wed Jul  3 02:54:25 2019
@@ -5481,6 +5481,7 @@ class APValueToBufferConverter {
     case APValue::LValue:
       llvm_unreachable("LValue subobject in bit_cast?");
     }
+    llvm_unreachable("Unhandled APValue::ValueKind");
   }
 
   bool visitRecord(const APValue &Val, QualType Ty, CharUnits Offset) {
@@ -5749,6 +5750,7 @@ class BufferToAPValueConverter {
     llvm_unreachable("either dependent or not canonical!");
 #include "clang/AST/TypeNodes.def"
     }
+    llvm_unreachable("Unhandled Type::TypeClass");
   }
 
 public:


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

Reply via email to