Fix some compiler warnings.

llvm-svn: 247164
This commit is contained in:
Zachary Turner 2015-09-09 17:25:43 +00:00
parent ffc277989b
commit 84f5b0df8e
3 changed files with 10 additions and 4 deletions

View File

@ -653,7 +653,7 @@ DataExtractor::GetMaxU32 (offset_t *offset_ptr, size_t byte_size) const
case 2: return GetU16(offset_ptr); break;
case 4: return GetU32(offset_ptr); break;
default:
assert("GetMaxU32 unhandled case!" == NULL);
assert(false && "GetMaxU32 unhandled case!");
break;
}
return 0;
@ -679,7 +679,7 @@ DataExtractor::GetMaxU64 (offset_t *offset_ptr, size_t size) const
case 4: return GetU32(offset_ptr); break;
case 8: return GetU64(offset_ptr); break;
default:
assert("GetMax64 unhandled case!" == NULL);
assert(false && "GetMax64 unhandled case!");
break;
}
return 0;
@ -695,7 +695,7 @@ DataExtractor::GetMaxU64_unchecked (offset_t *offset_ptr, size_t size) const
case 4: return GetU32_unchecked (offset_ptr); break;
case 8: return GetU64_unchecked (offset_ptr); break;
default:
assert("GetMax64 unhandled case!" == NULL);
assert(false && "GetMax64 unhandled case!");
break;
}
return 0;
@ -711,7 +711,7 @@ DataExtractor::GetMaxS64 (offset_t *offset_ptr, size_t size) const
case 4: return (int32_t)GetU32(offset_ptr); break;
case 8: return (int64_t)GetU64(offset_ptr); break;
default:
assert("GetMax64 unhandled case!" == NULL);
assert(false && "GetMax64 unhandled case!");
break;
}
return 0;

View File

@ -457,6 +457,7 @@ DumpValueObjectOptions::PointerDepth::CanAllowExpansion (bool is_root,
return m_count > 0;
return false;
}
return false;
}
bool
@ -471,6 +472,7 @@ DumpValueObjectOptions::PointerDepth::CanAllowExpansion () const
case Mode::Never:
return false;
}
return false;
}
bool

View File

@ -3196,6 +3196,7 @@ ClangASTContext::IsPossibleDynamicType (void* type, CompilerType *dynamic_pointe
case clang::BuiltinType::OCLImage2dArray:
case clang::BuiltinType::OCLImage3d:
case clang::BuiltinType::OCLSampler:
case clang::BuiltinType::OMPArraySection:
break;
}
break;
@ -4525,6 +4526,7 @@ ClangASTContext::GetFormat (void* type)
case clang::BuiltinType::OCLImage2dArray:
case clang::BuiltinType::OCLImage3d:
case clang::BuiltinType::OCLSampler:
case clang::BuiltinType::OMPArraySection:
return lldb::eFormatHex;
}
break;
@ -4822,6 +4824,7 @@ ClangASTContext::GetBasicTypeEnumeration (void* type)
case clang::BuiltinType::OCLImage2dArray:
case clang::BuiltinType::OCLImage3d:
case clang::BuiltinType::OCLSampler:
case clang::BuiltinType::OMPArraySection:
return eBasicTypeOther;
}
}
@ -5426,6 +5429,7 @@ ClangASTContext::GetNumPointeeChildren (clang::QualType type)
case clang::BuiltinType::ARCUnbridgedCast:
case clang::BuiltinType::PseudoObject:
case clang::BuiltinType::BuiltinFn:
case clang::BuiltinType::OMPArraySection:
return 1;
}
break;