Skip to content

Commit

Permalink
Replace llvm::Optional/llvm:None with std variants
Browse files Browse the repository at this point in the history
  • Loading branch information
hovsater committed Dec 16, 2024
1 parent cf83772 commit ef46092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libponyc/codegen/host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using namespace llvm;

LLVMTargetMachineRef codegen_machine(LLVMTargetRef target, pass_opt_t* opt)
{
Optional<Reloc::Model> reloc;
std::optional<Reloc::Model> reloc;

if(opt->pic)
reloc = Reloc::PIC_;
Expand Down Expand Up @@ -52,7 +52,7 @@ LLVMTargetMachineRef codegen_machine(LLVMTargetRef target, pass_opt_t* opt)
Target* t = reinterpret_cast<Target*>(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<LLVMTargetMachineRef>(m);
}
Expand Down

0 comments on commit ef46092

Please sign in to comment.