Skip to content

Commit 6e0b031

Browse files
Merge pull request #8410 from adrian-prantl/logmessage
Remove extra word in log message
2 parents c468fa3 + 4a743e6 commit 6e0b031

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,6 @@ CreateExceptionResolver(const lldb::BreakpointSP &bkpt, bool catch_bp, bool thro
215215
return resolver_sp;
216216
}
217217

218-
static const char *g_stub_log_message =
219-
"Swift language runtime isn't available because %s is not loaded in "
220-
"the process. functionality.";
221-
222218
/// Simple Swift programs may not actually depend on the Swift runtime
223219
/// library (libswiftCore.dylib), but if it is missing, what we can do
224220
/// is limited. This implementation represents that case.
@@ -231,7 +227,8 @@ class SwiftLanguageRuntimeStub {
231227
#define STUB_LOG() \
232228
do { \
233229
LLDB_LOGF(GetLog(LLDBLog::Expressions | LLDBLog::Types), \
234-
g_stub_log_message, \
230+
"Swift language runtime isn't available because %s is not " \
231+
"loaded in the process.", \
235232
GetStandardLibraryName(m_process).AsCString()); \
236233
assert(false && "called into swift language runtime stub"); \
237234
} while (0)

0 commit comments

Comments
 (0)