diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 600bda6fa57..d45353e347c 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -118,6 +118,8 @@ void LLVMDumpModule(LLVMModuleRef M) { LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty) { switch (unwrap(Ty)->getTypeID()) { + default: + assert(false && "Unhandled TypeID."); case Type::VoidTyID: return LLVMVoidTypeKind; case Type::FloatTyID: @@ -148,8 +150,6 @@ LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty) { return LLVMOpaqueTypeKind; case Type::VectorTyID: return LLVMVectorTypeKind; - default: - assert (false && "Unhandled TypeID."); } }