Fixing a couple of wrong logical operator bugs.

llvm-svn: 364614
This commit is contained in:
Ali Tamur 2019-06-28 00:11:26 +00:00
parent ecb7ac35f9
commit 9a89d657b1
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ protected:
image_infos_addr = LLDB_INVALID_ADDRESS;
}
bool IsValid() const { return version >= 1 || version <= 2; }
bool IsValid() const { return version >= 1 && version <= 2; }
};
void RegisterNotificationCallbacks();

View File

@ -121,7 +121,7 @@ protected:
dyldImageLoadAddress = LLDB_INVALID_ADDRESS;
}
bool IsValid() const { return version >= 1 || version <= 6; }
bool IsValid() const { return version >= 1 && version <= 6; }
};
static lldb::ByteOrder GetByteOrderFromMagic(uint32_t magic);