projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93e55de
)
Fix compiler warning (for -Asserts).
author
Daniel Dunbar
<daniel@zuster.org>
Thu, 16 Jul 2009 22:06:22 +0000
(22:06 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Thu, 16 Jul 2009 22:06:22 +0000
(22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76110
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Core.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Core.cpp
b/lib/VMCore/Core.cpp
index 600bda6fa572a23237a864479b2fb95f22e04121..d45353e347cf8ab757a1578ca83ba74f76b3531c 100644
(file)
--- 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.");
}
}