[Lldb-commits] [lldb] [lldb] Fix LuaState after #205210 (PR #205219)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 22 16:48:53 PDT 2026
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 <jonas at devlieghere.com>
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();
}
More information about the lldb-commits
mailing list