[Lldb-commits] [lldb] [lldb] Fix a format string in ClangASTSource (PR #107325)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 4 16:04:19 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Alex Langford (bulbazord)
<details>
<summary>Changes</summary>
Without this, LLDB asserts when enabling the expression logs.
---
Full diff: https://github.com/llvm/llvm-project/pull/107325.diff
1 Files Affected:
- (modified) lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp (+1-1)
``````````diff
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
index 1fdd272dcbeceb..e41efdd3f61c75 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
@@ -293,7 +293,7 @@ void ClangASTSource::CompleteType(clang::ObjCInterfaceDecl *interface_decl) {
LLDB_LOG(log,
" [CompleteObjCInterfaceDecl] on (ASTContext*){0:x} '{1}' "
- "Completing an ObjCInterfaceDecl named {1}",
+ "Completing an ObjCInterfaceDecl named {2}",
m_ast_context, m_clang_ast_context->getDisplayName(),
interface_decl->getName());
LLDB_LOG(log, " [COID] Before:\n{0}",
``````````
</details>
https://github.com/llvm/llvm-project/pull/107325
More information about the lldb-commits
mailing list