diff options
| author | David Spickett <david.spickett@linaro.org> | 2025-10-31 09:49:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 09:49:16 +0000 |
| commit | aaf7aa3c2f0a5c050902b257660fb4eda390e83e (patch) | |
| tree | c8fc99a1e2d980fc080ac9618cf2ce0404998882 /llvm/lib/Transforms/Utils/ControlFlowUtils.cpp | |
| parent | 34decf3b2cad9b31162d47be65854d5dbe3f10db (diff) | |
| download | llvm-aaf7aa3c2f0a5c050902b257660fb4eda390e83e.zip llvm-aaf7aa3c2f0a5c050902b257660fb4eda390e83e.tar.gz llvm-aaf7aa3c2f0a5c050902b257660fb4eda390e83e.tar.bz2 | |
[clang][utils] Make CmpDriver Python3 compatible (#163740)
The majority of this is running 2to3 on it:
* print is a function in 3.x
* next(it) instead of it.next()
Then there was a use of "map(None, iterables..)"
which in Python 2 was a way of saying
"combine these iterables, and if one is shorter,
pad with None".
This no longer works in Python3, the equivalent
is zip_longest:
https://docs.python.org/3/library/itertools.html#itertools.zip_longest
fillvalue defaults to None but I made it explicit
since it may help someone debugging this script
in future.
(I doubt it has been used for a very long time)
Diffstat (limited to 'llvm/lib/Transforms/Utils/ControlFlowUtils.cpp')
0 files changed, 0 insertions, 0 deletions
