summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/AST/ExprConstant.cpp2
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:
OpenPOWER on IntegriCloud