r280921 - Moved unreachable to appease msvc, gcc and clang
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 8 04:03:42 PDT 2016
Author: rksimon
Date: Thu Sep 8 06:03:41 2016
New Revision: 280921
URL: http://llvm.org/viewvc/llvm-project?rev=280921&view=rev
Log:
Moved unreachable to appease msvc, gcc and clang
Modified:
cfe/trunk/lib/CodeGen/CGVTables.cpp
Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVTables.cpp?rev=280921&r1=280920&r2=280921&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVTables.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVTables.cpp Thu Sep 8 06:03:41 2016
@@ -529,9 +529,6 @@ llvm::Constant *CodeGenVTables::CreateVT
};
switch (Component.getKind()) {
- default:
- llvm_unreachable("Unexpected vtable component kind");
-
case VTableComponent::CK_VCallOffset:
return OffsetConstant(Component.getVCallOffset());
@@ -619,6 +616,8 @@ llvm::Constant *CodeGenVTables::CreateVT
case VTableComponent::CK_UnusedFunctionPointer:
return llvm::ConstantExpr::getNullValue(CGM.Int8PtrTy);
}
+
+ llvm_unreachable("Unexpected vtable component kind");
}
llvm::Constant *
More information about the cfe-commits
mailing list