diff --git a/src/translate_c.cpp b/src/translate_c.cpp index bfd683d9e..ce0eda5d5 100644 --- a/src/translate_c.cpp +++ b/src/translate_c.cpp @@ -4658,7 +4658,6 @@ int parse_h_file(ImportTableEntry *import, ZigList *errors, const ch std::shared_ptr pch_container_ops = std::make_shared(); - bool skip_function_bodies = false; bool only_local_decls = true; bool capture_diagnostics = true; bool user_files_are_volatile = true; @@ -4671,7 +4670,7 @@ int parse_h_file(ImportTableEntry *import, ZigList *errors, const ch &clang_argv.at(0), &clang_argv.last(), pch_container_ops, diags, resources_path, only_local_decls, capture_diagnostics, None, true, 0, TU_Complete, - false, false, allow_pch_with_compiler_errors, skip_function_bodies, + false, false, allow_pch_with_compiler_errors, SkipFunctionBodiesScope::None, single_file_parse, user_files_are_volatile, for_serialization, None, &err_unit, nullptr)); diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index 22fd40985..8cd3e6fb7 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; }