[LLDB] Fix off by one logging placeholders in ClangASTSource::layoutRecordType()
authorShafik Yaghmour <syaghmour@apple.com>
Tue, 17 Aug 2021 23:29:00 +0000 (16:29 -0700)
committerShafik Yaghmour <syaghmour@apple.com>
Tue, 17 Aug 2021 23:47:46 +0000 (16:47 -0700)
D72391 Added some additional information to the logging but in this case instead of using
placeholder 2 and 3 they used 3 and 4.

lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp

index fad2f3f..58b6b62 100644 (file)
@@ -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());