From c75a63d76f1c073d2b3e49b53c9adbb263d17322 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 14 Dec 2022 14:06:25 -0800 Subject: [PATCH] [LLVM] Use std::nullopt instead of llvm::None Pass `std::nullopt` to initialization of `PassBuilder` for `PGOOptions`. LLVM is moving away from its own `Optional` type to `std::optional`. --- src/target/llvm/codegen_llvm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/llvm/codegen_llvm.cc b/src/target/llvm/codegen_llvm.cc index 7aae17788800..526bcf0fb26e 100644 --- a/src/target/llvm/codegen_llvm.cc +++ b/src/target/llvm/codegen_llvm.cc @@ -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;