[Lldb-commits] [lldb] 61cb964 - [lldb] Convert Optional<llvm::Reloc::Model> to std::optional

Fangrui Song via lldb-commits lldb-commits at lists.llvm.org
Sat Dec 3 10:49:58 PST 2022


Author: Fangrui Song
Date: 2022-12-03T18:49:51Z
New Revision: 61cb96404ed27a95df9296460d9920e8c13379e5

URL: https://github.com/llvm/llvm-project/commit/61cb96404ed27a95df9296460d9920e8c13379e5
DIFF: https://github.com/llvm/llvm-project/commit/61cb96404ed27a95df9296460d9920e8c13379e5.diff

LOG: [lldb] Convert Optional<llvm::Reloc::Model> to std::optional

Added: 
    

Modified: 
    lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp
index 21a434e650582..d8c6fced0c6ad 100644
--- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp
@@ -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:


        


More information about the lldb-commits mailing list