[PATCH] D118005: [hmaptool] Fix string decoding for Python 3
Shoaib Meenai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 3 15:19:03 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb4c1cbff79d0: [hmaptool] Fix string decoding for Python 3 (authored by smeenai).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118005/new/
https://reviews.llvm.org/D118005
Files:
clang/utils/hmaptool/hmaptool
Index: clang/utils/hmaptool/hmaptool
===================================================================
--- clang/utils/hmaptool/hmaptool
+++ clang/utils/hmaptool/hmaptool
@@ -100,7 +100,7 @@
raise SystemExit("error: %s: invalid string index" % (
idx,))
end_idx = self.strtable.index(0, idx)
- return self.strtable[idx:end_idx]
+ return self.strtable[idx:end_idx].decode()
@property
def mappings(self):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118005.412848.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220303/ae163e47/attachment.bin>
More information about the cfe-commits
mailing list