[Symbolication] Fix unicode compatibility between 2 and 3.

Triples are always ASCII for now, but we were handed out a
unicode object.

<rdar://problem/53592772>

llvm-svn: 367260
This commit is contained in:
Davide Italiano 2019-07-29 21:25:37 +00:00
parent 2fd2f41d2a
commit acc626bc57
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ class Image:
return None
resolved_path = self.get_resolved_path()
self.module = target.AddModule(
resolved_path, self.arch, uuid_str, self.symfile)
resolved_path, str(self.arch), uuid_str, self.symfile)
if not self.module:
return 'error: unable to get module for (%s) "%s"' % (
self.arch, self.get_resolved_path())