Jinoh Kang jinoh.kang.kr@gmail.com writes:
Commit 5c101ed58f5 (ntdll: Fix unwinding of leaf functions on ARM64., 2019-10-23) changed the sign of UNW_ENOINFO when testing for error from libunwind. However, unw_get_proc_info() does not return a sign-flipped error code. Thus, comparing it with -UNW_ENOINFO is a no-op.
That seems specific to the LLVM version, the standalone libunwind definitely returns negative values:
https://github.com/libunwind/libunwind/blob/master/src/dwarf/Gparser.c#L468