Fixing an if condition which was causing issues in detecting the correct runtime version
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@151388 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/summaries/cocoa/objc_runtime.py b/examples/summaries/cocoa/objc_runtime.py
index c886426..f62898f 100644
--- a/examples/summaries/cocoa/objc_runtime.py
+++ b/examples/summaries/cocoa/objc_runtime.py
@@ -434,7 +434,7 @@
self.uint32_t = valobj.GetType().GetBasicType(lldb.eBasicTypeUnsignedInt)
global runtime_version
pid = self.process.GetProcessID()
- if runtime_version.look_for_key(pid) == None:
+ if runtime_version.look_for_key(pid):
self.runtime_version = runtime_version.get_value(pid)
else:
self.runtime_version = ObjCRuntime.runtime_version(self.process)