[all-commits] [llvm/llvm-project] 991df7: [Object][MachO] Handle end iterator in getSymbolTy...
Steven Wu via All-commits
all-commits at lists.llvm.org
Wed Mar 17 15:07:13 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 991df7333d4a6c9904dec17f53b4c531cfb40d49
https://github.com/llvm/llvm-project/commit/991df7333d4a6c9904dec17f53b4c531cfb40d49
Author: Steven Wu <stevenwu at apple.com>
Date: 2021-03-17 (Wed, 17 Mar 2021)
Changed paths:
M llvm/lib/Object/MachOObjectFile.cpp
Log Message:
-----------
[Object][MachO] Handle end iterator in getSymbolType()
Fix a bug in MachOObjectFile::getSymbolType() that it is not checking if
the iterator is end() before deference the iterator. Instead, return
`Other` type, which aligns with the behavior of `llvm-nm`.
rdar://75291638
Reviewed By: davide, ab
Differential Revision: https://reviews.llvm.org/D98739
More information about the All-commits
mailing list