summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IVUsers.cpp
diff options
context:
space:
mode:
authorMasud Rahman <llvm@masudrahman.com>2017-10-21 16:13:41 +0000
committerMasud Rahman <llvm@masudrahman.com>2017-10-21 16:13:41 +0000
commitc739affc439d57e18a57f0f2c4d113ffc492cb24 (patch)
tree950d91c9ebb80a527eec859a4047b85d97b83209 /llvm/lib/Analysis/IVUsers.cpp
parent93135cb89a89bb5e32259d0e8ca854e22061ff09 (diff)
downloadbcm5719-llvm-c739affc439d57e18a57f0f2c4d113ffc492cb24.tar.gz
bcm5719-llvm-c739affc439d57e18a57f0f2c4d113ffc492cb24.zip
[bindings] allow null strings in Python 3
Some API calls accept 'NULL' instead of a char array (e.g. the second argument to 'clang_ParseTranslationUnit'). For Python 3 compatibility, all strings are passed through 'c_interop_string' which expects to receive only 'bytes' or 'str' objects. This change extends this behavior to additionally allow 'None' to be supplied. A test case was added which breaks in Python 3, and is fixed by this change. All the test cases pass in both, Python 2 and Python 3. llvm-svn: 316264
Diffstat (limited to 'llvm/lib/Analysis/IVUsers.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud