[Lldb-commits] [lldb] 0479afb - [LLDB] Fix off by one logging placeholders in ClangASTSource::layoutRecordType()
Shafik Yaghmour via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 17 16:48:13 PDT 2021
Author: Shafik Yaghmour
Date: 2021-08-17T16:47:46-07:00
New Revision: 0479afb3d6a31668631464653f07154d6850e4a1
URL: https://github.com/llvm/llvm-project/commit/0479afb3d6a31668631464653f07154d6850e4a1
DIFF: https://github.com/llvm/llvm-project/commit/0479afb3d6a31668631464653f07154d6850e4a1.diff
LOG: [LLDB] Fix off by one logging placeholders in ClangASTSource::layoutRecordType()
D72391 Added some additional information to the logging but in this case instead of using
placeholder 2 and 3 they used 3 and 4.
Added:
Modified:
lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
index fad2f3f1a8638..58b6b625bfeca 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
@@ -1495,7 +1495,7 @@ bool ClangASTSource::layoutRecordType(const RecordDecl *record, uint64_t &size,
LLDB_LOG(log,
"LayoutRecordType on (ASTContext*){0} '{1}' for (RecordDecl*)"
- "{3} [name = '{4}']",
+ "{2} [name = '{3}']",
m_ast_context, m_clang_ast_context->getDisplayName(), record,
record->getName());
More information about the lldb-commits
mailing list