diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-07-03 09:54:25 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-07-03 09:54:25 +0000 |
commit | 71600be3f38f3e3e3df14297a34d7b8d23e07bb8 (patch) | |
tree | f59139067a62bd76d6b962772401f4635dd90c35 /clang/lib/AST/ExprConstant.cpp | |
parent | 9f0c83902debb2a0324975a07b450998eae93688 (diff) | |
download | bcm5719-llvm-71600be3f38f3e3e3df14297a34d7b8d23e07bb8.tar.gz bcm5719-llvm-71600be3f38f3e3e3df14297a34d7b8d23e07bb8.zip |
Fix MSVC "not all control paths return a value" warnings. NFCI.
llvm-svn: 365012
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index a71cc8e123f..21cbd6dfa19 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -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: |