summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2018-04-10 15:53:28 +0000
committerJessica Paquette <jpaquette@apple.com>2018-04-10 15:53:28 +0000
commite4b90d82a0ed8cad2949d83839fcf023ab08ed97 (patch)
tree1999d89cddcdd68b4d90e64908c1a7510ab1fcd0 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentb1c3b22b4cc0a6ecf24d9a22b506ebfec2e3e8ee (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud