aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-05-26 12:18:13 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-05-26 12:18:13 -0400
commit8efb3f5e197edf2debebf0557c74fef2541cc117 (patch)
tree93fa03300c5442cfb17db9dd99c64975ca71f734 /src/zig_llvm.cpp
parent1f96a866769423e363f1c48654c0f51ecf75db58 (diff)
downloadzig-8efb3f5e197edf2debebf0557c74fef2541cc117.tar.gz
zig-8efb3f5e197edf2debebf0557c74fef2541cc117.zip
update to latest LLVM API
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
index 22fd409859..8cd3e6fb78 100644
--- a/src/zig_llvm.cpp
+++ b/src/zig_llvm.cpp
@@ -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;
}