diff options
author | Jessica Paquette <jpaquette@apple.com> | 2018-04-10 15:53:28 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2018-04-10 15:53:28 +0000 |
commit | e4b90d82a0ed8cad2949d83839fcf023ab08ed97 (patch) | |
tree | 1999d89cddcdd68b4d90e64908c1a7510ab1fcd0 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | b1c3b22b4cc0a6ecf24d9a22b506ebfec2e3e8ee (diff) | |
download | bcm5719-llvm-e4b90d82a0ed8cad2949d83839fcf023ab08ed97.tar.gz bcm5719-llvm-e4b90d82a0ed8cad2949d83839fcf023ab08ed97.zip |
Add missing nullptr check to AArch64MachObjectWriter::recordRelocation
There was missing nullptr check before a call to getSection() in
recordRelocation. This would result in a segfault in code like the attached
test.
This adds the missing check and a test which makes sure we get the expected
error output.
llvm-svn: 329716
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions