[llvm-commits] [llvm] r76110 - /llvm/trunk/lib/VMCore/Core.cpp
Daniel Dunbar
daniel at zuster.org
Thu Jul 16 15:06:23 PDT 2009
Author: ddunbar
Date: Thu Jul 16 17:06:22 2009
New Revision: 76110
URL: http://llvm.org/viewvc/llvm-project?rev=76110&view=rev
Log:
Fix compiler warning (for -Asserts).
Modified:
llvm/trunk/lib/VMCore/Core.cpp
Modified: llvm/trunk/lib/VMCore/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Core.cpp?rev=76110&r1=76109&r2=76110&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Core.cpp (original)
+++ llvm/trunk/lib/VMCore/Core.cpp Thu Jul 16 17:06:22 2009
@@ -118,6 +118,8 @@
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 @@
return LLVMOpaqueTypeKind;
case Type::VectorTyID:
return LLVMVectorTypeKind;
- default:
- assert (false && "Unhandled TypeID.");
}
}
More information about the llvm-commits
mailing list