diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2016-03-24 01:14:10 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2016-03-24 01:14:10 +0000 |
| commit | 07134ae364c4cba9158a2c43adb78a8da1051b3e (patch) | |
| tree | d5da4f7c467e13addd7f3d87cc9ce6730edf4237 /lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp | |
| parent | 07601d33f8349b563e1b5d8c12ec59aa49b0deca (diff) | |
| download | bcm5719-llvm-07134ae364c4cba9158a2c43adb78a8da1051b3e.tar.gz bcm5719-llvm-07134ae364c4cba9158a2c43adb78a8da1051b3e.zip | |
Avoid UB deref of nullptr to reference. NFC.
Its possible for file to have no entry atom which means that there
is no atom to check for being a thumb function. Instead just skip
the thumb check and set the entry address to 0, which matches the
current behaviour of getting a default initialised int from a map.
llvm-svn: 264233
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp')
0 files changed, 0 insertions, 0 deletions

