aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorAmy Wang <kai.ting.wang@huawei.com>2022-09-05 15:36:36 +0100
committerLuke Drummond <luke.drummond@codeplay.com>2022-09-05 15:40:47 +0100
commit8f4e6cfe73d803697470e817845d9b94c4530ca3 (patch)
tree3a73f982257799e0d9b271d54130fb777029e45b /llvm/lib/Object/COFFObjectFile.cpp
parent2d52c6bfae801b016dd3627b8c0e7c4a99405549 (diff)
downloadllvm-8f4e6cfe73d803697470e817845d9b94c4530ca3.zip
llvm-8f4e6cfe73d803697470e817845d9b94c4530ca3.tar.gz
llvm-8f4e6cfe73d803697470e817845d9b94c4530ca3.tar.bz2
[clang-format] Use utf-8 for JSON object load
From Python 3.6 and above, it should be able to automatically select a decoding for json.loads. However, with a vim encoding that defaults to utf-8, clang-format.py runs into the following error TypeError: the JSON object must be str, not 'bytes' This patch explicitly specifies utf-8 decoding for the header. Reviewed by: ldrumm, sammcall Differential Revision: https://reviews.llvm.org/D133236
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions