summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-11-07 00:02:32 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-11-07 00:02:32 +0000
commit0ed037ba4cb20cc6f6191e049c3f6ae75af8f7aa (patch)
treec5eb44d644ed9765bc05ba7b257dc34db5128da2 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
parent83c4b687205e4e81da0602865fbc24350831cf6a (diff)
downloadbcm5719-llvm-0ed037ba4cb20cc6f6191e049c3f6ae75af8f7aa.tar.gz
bcm5719-llvm-0ed037ba4cb20cc6f6191e049c3f6ae75af8f7aa.zip
ADT: Require explicit ilist iterator/pointer conversions
Disallow implicit conversions between ilist iterators and element points. Explicit conversions still work of course. This is the first step toward removing the undefined behaviour in `ilist` and `iplist`: http://lists.llvm.org/pipermail/llvm-dev/2015-October/091115.html The motivation for removing the implicit iterators is that I came across real bugs (that were *really* getting lucky). More details and some brief discussion later in that thread: http://lists.llvm.org/pipermail/llvm-dev/2015-October/091617.html Note: if you have out-of-tree code, it should be fairly easy to revert this patch downstream while you update your out-of-tree call sites. Note that these conversions are occasionally latent bugs (that may happen to "work" now, but only because of getting lucky with UB; follow-ups will change your luck). When they are valid, I suggest using `->getIterator()` to go from pointer to iterator, and `&*` to go from iterator to pointer. llvm-svn: 252372
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud