Skip to content

Commit

Permalink
[LLVM] Use std::nullopt instead of llvm::None (apache#13617)
Browse files Browse the repository at this point in the history
Pass `std::nullopt` to initialization of `PassBuilder` for `PGOOptions`.
LLVM is moving away from its own `Optional` type to `std::optional`.
  • Loading branch information
Krzysztof Parzyszek authored and fzi-peccia committed Mar 27, 2023
1 parent 2024e63 commit f566e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/llvm/codegen_llvm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ void CodeGenLLVM::Optimize() {

llvm::PipelineTuningOptions pto = llvm::PipelineTuningOptions();
llvm::PassInstrumentationCallbacks pic;
llvm::PassBuilder builder(tm, pto, llvm::None, &pic);
llvm::PassBuilder builder(tm, pto, std::nullopt, &pic);

llvm::LoopAnalysisManager lam;
llvm::FunctionAnalysisManager fam;
Expand Down

0 comments on commit f566e61

Please sign in to comment.