Fix check for verbose logging.

Thanks to Pavel for pointing this out!

llvm-svn: 328557
This commit is contained in:
Adrian Prantl 2018-03-26 17:40:44 +00:00
parent 26d4f923c4
commit 7341691502
1 changed files with 2 additions and 3 deletions

View File

@ -1440,8 +1440,7 @@ uint32_t AppleObjCRuntimeV2::ParseClassInfoArray(const DataExtractor &data,
// uint32_t hash;
// } __attribute__((__packed__));
Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_TYPES
| LLDB_LOG_OPTION_VERBOSE));
Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_TYPES));
uint32_t num_parsed = 0;
// Iterate through all ClassInfo structures
@ -1450,7 +1449,7 @@ uint32_t AppleObjCRuntimeV2::ParseClassInfoArray(const DataExtractor &data,
ObjCISA isa = data.GetPointer(&offset);
if (isa == 0) {
if (log)
if (log && log->GetVerbose())
log->Printf(
"AppleObjCRuntimeV2 found NULL isa, ignoring this class info");
continue;