summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader
diff options
context:
space:
mode:
authorAli Tamur <tamur@google.com>2019-06-28 00:11:26 +0000
committerAli Tamur <tamur@google.com>2019-06-28 00:11:26 +0000
commit9a89d657b1a51ce8d1b8b1e32b836319fb7c2a3e (patch)
tree610e79f188f2ac1d993aa77e496afd0a174c1645 /lldb/source/Plugins/DynamicLoader
parentecb7ac35f9de3d4a89b382ae251337f0fe2941ef (diff)
downloadbcm5719-llvm-9a89d657b1a51ce8d1b8b1e32b836319fb7c2a3e.tar.gz
bcm5719-llvm-9a89d657b1a51ce8d1b8b1e32b836319fb7c2a3e.zip
Fixing a couple of wrong logical operator bugs.
llvm-svn: 364614
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader')
-rw-r--r--lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h2
-rw-r--r--lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h
index 67734a3c3a5..eb31c40916c 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h
@@ -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();
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h
index 77c8209b4f5..00b2ebf373d 100644
--- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h
+++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h
@@ -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);
OpenPOWER on IntegriCloud