[all-commits] [llvm/llvm-project] 767ce0: Simplify ValueObject::GetQualifiedRepresentationIf...

Adrian Prantl via All-commits all-commits at lists.llvm.org
Wed Nov 8 09:55:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 767ce07c2d4c312188623441979d620b9708ee99
      https://github.com/llvm/llvm-project/commit/767ce07c2d4c312188623441979d620b9708ee99
  Author: Adrian Prantl <adrian-prantl at users.noreply.github.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M lldb/source/Core/ValueObject.cpp

  Log Message:
  -----------
  Simplify ValueObject::GetQualifiedRepresentationIfAvailable(). (#71559)

I received a couple of nullptr-deref crash reports with no line numbers
in this function. The way the function was written it was a bit
diffucult to keep track of when result_sp could be null, so this patch
simplifies the function to make it more obvious when a nullptr can be
contained in the variable.




More information about the All-commits mailing list