[all-commits] [llvm/llvm-project] 7c6e52: [lldb] Ptrs->refs in CommandObjectExpression::Eval...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Tue Mar 17 05:23:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c6e52ac0ce5a6879331bc3c322dd20bfec3bf14
      https://github.com/llvm/llvm-project/commit/7c6e52ac0ce5a6879331bc3c322dd20bfec3bf14
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-03-17 (Tue, 17 Mar 2020)

  Changed paths:
    M lldb/source/Commands/CommandObjectExpression.cpp
    M lldb/source/Commands/CommandObjectExpression.h

  Log Message:
  -----------
  [lldb] Ptrs->refs in CommandObjectExpression::EvaluateExpression parameters

The error_stream and result parameter were inconsistently checked for
being null, so we might as well make them references instead of crashing
in case someone passes a nullptr and hits one of the code paths that are
currently not doing a nullptr check on those parameters. Also change
output_stream for consistency.




More information about the All-commits mailing list