mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
Use built-in truth value testing.
llvm-svn: 132078
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user