diff --git a/src/libponyc/codegen/host.cc b/src/libponyc/codegen/host.cc index 43a89d2d93..0f89fe928e 100644 --- a/src/libponyc/codegen/host.cc +++ b/src/libponyc/codegen/host.cc @@ -24,7 +24,7 @@ using namespace llvm; LLVMTargetMachineRef codegen_machine(LLVMTargetRef target, pass_opt_t* opt) { - Optional reloc; + std::optional reloc; if(opt->pic) reloc = Reloc::PIC_; @@ -52,7 +52,7 @@ LLVMTargetMachineRef codegen_machine(LLVMTargetRef target, pass_opt_t* opt) Target* t = reinterpret_cast(target); TargetMachine* m = t->createTargetMachine(opt->triple, opt->cpu, - opt->features, options, reloc, llvm::None, opt_level, false); + opt->features, options, reloc, std::nullopt, opt_level, false); return reinterpret_cast(m); }