From 4a743e6ed53d92bcbae43dbb53eada578f7c9be4 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 15 Mar 2024 09:15:14 -0700 Subject: [PATCH] Remove extra word in log message --- .../Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp index e6fbd0b643ce6..14cb35cfbda29 100644 --- a/lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp +++ b/lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp @@ -215,10 +215,6 @@ CreateExceptionResolver(const lldb::BreakpointSP &bkpt, bool catch_bp, bool thro return resolver_sp; } -static const char *g_stub_log_message = - "Swift language runtime isn't available because %s is not loaded in " - "the process. functionality."; - /// Simple Swift programs may not actually depend on the Swift runtime /// library (libswiftCore.dylib), but if it is missing, what we can do /// is limited. This implementation represents that case. @@ -231,7 +227,8 @@ class SwiftLanguageRuntimeStub { #define STUB_LOG() \ do { \ LLDB_LOGF(GetLog(LLDBLog::Expressions | LLDBLog::Types), \ - g_stub_log_message, \ + "Swift language runtime isn't available because %s is not " \ + "loaded in the process.", \ GetStandardLibraryName(m_process).AsCString()); \ assert(false && "called into swift language runtime stub"); \ } while (0)