Fix error msg
This commit is contained in:
parent
a357987597
commit
489d8056b9
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ class TargetMachine(llvm.Wrapper):
|
|||
with contextlib.closing(BytesIO()) as error:
|
||||
target = api.llvm.TargetRegistry.lookupTarget(arch, triple, error)
|
||||
if not target:
|
||||
raise llvm.LLVMException(error)
|
||||
raise llvm.LLVMException(error.getvalue())
|
||||
if not target.hasTargetMachine():
|
||||
raise llvm.LLVMException(target, "No target machine.")
|
||||
target_options = api.llvm.TargetOptions.new()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue