[all-commits] [llvm/llvm-project] 33f9fc: Don't report memory return values on MacOS_arm64 o...

jimingham via All-commits all-commits at lists.llvm.org
Mon Mar 14 15:25:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33f9fc77d1ffe7d6c86b6c7a692ff9f2b99cf82e
      https://github.com/llvm/llvm-project/commit/33f9fc77d1ffe7d6c86b6c7a692ff9f2b99cf82e
  Author: Jim Ingham <jingham at apple.com>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    M lldb/bindings/interface/SBTarget.i
    M lldb/include/lldb/API/SBTarget.h
    M lldb/include/lldb/Target/Target.h
    M lldb/source/API/SBTarget.cpp
    M lldb/source/Plugins/ABI/AArch64/ABIMacOSX_arm64.cpp
    M lldb/source/Plugins/ABI/AArch64/ABISysV_arm64.cpp
    M lldb/source/Target/Target.cpp
    M lldb/test/API/functionalities/return-value/TestReturnValue.py
    M lldb/test/API/python_api/target/TestTargetAPI.py

  Log Message:
  -----------
  Don't report memory return values on MacOS_arm64 of SysV_arm64 ABI's.

They don't require that the memory return address be restored prior to
function exit, so there's no guarantee the value is correct.  It's better
to return nothing that something that's not accurate.

Differential Revision: https://reviews.llvm.org/D121348




More information about the All-commits mailing list