[Lldb-commits] [lldb] [lldb][NFC] Small fixes identified by the clang static analyzer (PR #148773)

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 15 09:58:26 PDT 2025


================
@@ -289,12 +286,8 @@ void LanguageRuntime::InitializeCommands(CommandObject *parent) {
   if (!parent->IsMultiwordObject())
     return;
 
-  LanguageRuntimeCreateInstance create_callback;
-
   for (uint32_t idx = 0;
-       (create_callback =
-            PluginManager::GetLanguageRuntimeCreateCallbackAtIndex(idx)) !=
-       nullptr;
----------------
kastiglione wrote:

I've noticed this unnecessary assignment in the for-loop before, thanks for deleting it.

https://github.com/llvm/llvm-project/pull/148773


More information about the lldb-commits mailing list