summaryrefslogtreecommitdiffstats
path: root/lldb/utils/test
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-05-25 20:47:27 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-05-25 20:47:27 +0000
commit26fc16b0326e236f72b9fa504a1ff1759773c280 (patch)
tree593caa444b5344d51b401c9b4d1d2ac3693bdf4b /lldb/utils/test
parente4e5c0f219208b2370667347edc7f03951bc27fc (diff)
downloadbcm5719-llvm-26fc16b0326e236f72b9fa504a1ff1759773c280.tar.gz
bcm5719-llvm-26fc16b0326e236f72b9fa504a1ff1759773c280.zip
Use built-in truth value testing.
llvm-svn: 132078
Diffstat (limited to 'lldb/utils/test')
-rwxr-xr-xlldb/utils/test/lldb-disasm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/utils/test/lldb-disasm.py b/lldb/utils/test/lldb-disasm.py
index 48c286172ea..5a4662d26d2 100755
--- a/lldb/utils/test/lldb-disasm.py
+++ b/lldb/utils/test/lldb-disasm.py
@@ -81,7 +81,7 @@ def do_lldb_disassembly(lldb_commands, exe, disassemble_options, num_symbols, sy
# Create the debugger instance now.
dbg = lldb.SBDebugger.Create()
- if not dbg.IsValid():
+ if not dbg:
raise Exception('Invalid debugger instance')
# Register an exit callback.
OpenPOWER on IntegriCloud