mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Fix compiler warning (for -Asserts).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76110 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93e55deeba
commit
efd280b4ca
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user