[lldb] Convert Optional<llvm::Reloc::Model> to std::optional
authorFangrui Song <i@maskray.me>
Sat, 3 Dec 2022 18:49:51 +0000 (18:49 +0000)
committerFangrui Song <i@maskray.me>
Sat, 3 Dec 2022 18:49:51 +0000 (18:49 +0000)
lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp

index 21a434e..d8c6fce 100644 (file)
@@ -92,7 +92,7 @@ bool RenderScriptRuntimeModulePass::runOnModule(llvm::Module &module) {
     return false;
   }
 
-  llvm::Optional<llvm::Reloc::Model> reloc_model;
+  std::optional<llvm::Reloc::Model> reloc_model;
   assert(m_process_ptr && "no available lldb process");
   switch (m_process_ptr->GetTarget().GetArchitecture().GetMachine()) {
   case llvm::Triple::ArchType::x86: