[all-commits] [llvm/llvm-project] 16b7cf: SymbolFile: ensure that we have a value before inv...

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Wed Mar 22 11:14:34 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16b7cf245ec0ff5428daee4f71af62e1938bfc73
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp

  Log Message:
  SymbolFile: ensure that we have a value before invoking `getBitWidth`

Ensure that the variant returned by `member->getValue()` has a value and
is not `Empty`.  Failure to do so will trigger an assertion failure in
`llvm::pdb::Variant::getBitWidth()`.  This can occur when the `static`
member is a forward declaration.

Differential Revision: https://reviews.llvm.org/D146536
Reviewed By: sgraenitz

More information about the All-commits mailing list