projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Fix check for disasm creation failure
[oota-llvm.git]
/
bindings
/
python
/
llvm
/
disassembler.py
diff --git
a/bindings/python/llvm/disassembler.py
b/bindings/python/llvm/disassembler.py
index 9e781aef8f2160d1af2fb50859d2a4b5f37509da..f2df275bf4a0969cb8bc741919817495deee261c 100644
(file)
--- a/
bindings/python/llvm/disassembler.py
+++ b/
bindings/python/llvm/disassembler.py
@@
-75,7
+75,7
@@
class Disassembler(LLVMObject):
ptr = lib.LLVMCreateDisasm(c_char_p(triple), c_void_p(None), c_int(0),
callbacks['op_info'](0), callbacks['symbol_lookup'](0))
- if not ptr
.contents
:
+ if not ptr:
raise Exception('Could not obtain disassembler for triple: %s' %
triple)