update to latest LLVM API

This commit is contained in:
Andrew Kelley
2018-05-26 12:18:13 -04:00
parent 1f96a86676
commit 8efb3f5e19
2 changed files with 2 additions and 3 deletions

View File

@@ -162,7 +162,7 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM
abort();
}
if (target_machine->addPassesToEmitFile(MPM, dest, ft)) {
if (target_machine->addPassesToEmitFile(MPM, dest, nullptr, ft)) {
*error_message = strdup("TargetMachine can't emit a file of this type");
return true;
}