r183155 - Pacify compilers that think you can drop off a fully covered switch.
Benjamin Kramer
benny.kra at googlemail.com
Mon Jun 3 14:26:13 PDT 2013
Author: d0k
Date: Mon Jun 3 16:26:13 2013
New Revision: 183155
URL: http://llvm.org/viewvc/llvm-project?rev=183155&view=rev
Log:
Pacify compilers that think you can drop off a fully covered switch.
Modified:
cfe/trunk/lib/AST/APValue.cpp
Modified: cfe/trunk/lib/AST/APValue.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/APValue.cpp?rev=183155&r1=183154&r2=183155&view=diff
==============================================================================
--- cfe/trunk/lib/AST/APValue.cpp (original)
+++ cfe/trunk/lib/AST/APValue.cpp Mon Jun 3 16:26:13 2013
@@ -243,6 +243,7 @@ bool APValue::needsCleanup() const {
case MemberPointer:
return reinterpret_cast<const MemberPointerData *>(Data)->hasPathPtr();
}
+ llvm_unreachable("Unknown APValue kind!");
}
void APValue::swap(APValue &RHS) {
More information about the cfe-commits
mailing list