python: Fix check for disasm creation failure
authorAnders Waldenborg <anders@0x63.nu>
Sun, 17 Nov 2013 15:40:57 +0000 (15:40 +0000)
committerAnders Waldenborg <anders@0x63.nu>
Sun, 17 Nov 2013 15:40:57 +0000 (15:40 +0000)
commite8a957d2a91d02af0b9c3808b31067d236b22196
treefcc2843da3a27bb535c8922b8077b1e2d08a40f2
parent60e4d7f618ffc8b91c6fa2638e3c25a085c2fb1e
python: Fix check for disasm creation failure

Check should be for pointer being NULL, not what it points to.

Also adds a test for this case.

Reviewed By: indygreg

Differential Revision: http://llvm-reviews.chandlerc.com/D1878

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194965 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/llvm/disassembler.py
bindings/python/llvm/tests/test_disassembler.py