[all-commits] [llvm/llvm-project] afeb2d: [LLDB][NativePDB] Fix a minor bug.

Zequan Wu via All-commits all-commits at lists.llvm.org
Thu Sep 1 13:11:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: afeb2d0a21e383b5436b539f311ea00803d24e24
      https://github.com/llvm/llvm-project/commit/afeb2d0a21e383b5436b539f311ea00803d24e24
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2022-09-01 (Thu, 01 Sep 2022)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp

  Log Message:
  -----------
  [LLDB][NativePDB] Fix a minor bug.

llvm::codeview::visitMemberRecordStream in CompleteTagDecl will call
GetOrCreateType create type if not seen before, which inserts new entries
into m_decl_to_status. This may invalidates status which is a reference to
std::pair::second from DenseMapIterator.




More information about the All-commits mailing list