[all-commits] [llvm/llvm-project] 1c1ffa: GetPath() returns a std::string temporary. You ca...

jimingham via All-commits all-commits at lists.llvm.org
Wed Aug 5 19:13:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c1ffa6a300a60c81be41a3e08a4e9da7499adc1
      https://github.com/llvm/llvm-project/commit/1c1ffa6a300a60c81be41a3e08a4e9da7499adc1
  Author: Jim Ingham <jingham at apple.com>
  Date:   2020-08-05 (Wed, 05 Aug 2020)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

  Log Message:
  -----------
  GetPath() returns a std::string temporary.  You can't reference just the c_str.

Found by the static analyzer.




More information about the All-commits mailing list