aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authormydeveloperday <mydeveloperday@gmail.com>2020-05-07 19:52:12 +0100
committermydeveloperday <mydeveloperday@gmail.com>2020-05-07 19:52:12 +0100
commit3125aa99593db9fe17c825fd5984b333bb86437f (patch)
tree5aacd22e4b340d746fcb26fbcbbf6450fa96fdc0 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent305a4abfd3a1e3f4e5c8d98136f88f54b761b011 (diff)
downloadllvm-3125aa99593db9fe17c825fd5984b333bb86437f.zip
llvm-3125aa99593db9fe17c825fd5984b333bb86437f.tar.gz
llvm-3125aa99593db9fe17c825fd5984b333bb86437f.tar.bz2
[clang-format] ensure dump_format_style.py works with Python3 correctly
Summary: Python2 has been removed from cygwin, this means anyone running the dump_format_style.py in a cygwin shell could pick up python3 instead In Python3 all strings are unicode as the file is opened in binary mode we need to encode the contents string or we'll face the following error ``` Traceback (most recent call last): File "./dump_format_style.py", line 228, in <module> output.write(contents) TypeError: a bytes-like object is required, not 'str' ``` Reviewed By: krasimir Subscribers: cfe-commits Tags: #clang, #clang-format Differential Revision: https://reviews.llvm.org/D79326
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions