https://github.com/JDevlieghere updated 
https://github.com/llvm/llvm-project/pull/205219

>From c062bf02d04b4fab27a72e939077baab49cb1e13 Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <[email protected]>
Date: Mon, 22 Jun 2026 16:30:54 -0700
Subject: [PATCH] [lldb] Fix LuaState after #205210

---
 lldb/source/Plugins/ScriptInterpreter/Lua/LuaState.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lldb/source/Plugins/ScriptInterpreter/Lua/LuaState.cpp 
b/lldb/source/Plugins/ScriptInterpreter/Lua/LuaState.cpp
index 0a4001f625f43..672e694e6bad3 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Lua/LuaState.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Lua/LuaState.cpp
@@ -149,8 +149,8 @@ llvm::Error LuaState::LoadModule(llvm::StringRef filename) {
     return e;
   }
 
-  ConstString module_name = file.GetFileNameStrippingExtension();
-  lua_setglobal(m_lua_state, module_name.GetCString());
+  const std::string module_name = file.GetFileNameStrippingExtension().str();
+  lua_setglobal(m_lua_state, module_name.c_str());
   return llvm::Error::success();
 }
 

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to