summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorAaron Puchert <aaronpuchert@alice-dsl.net>2018-09-19 00:19:38 +0000
committerAaron Puchert <aaronpuchert@alice-dsl.net>2018-09-19 00:19:38 +0000
commitf6ccde781004295dc031b86ee1f19a367130db70 (patch)
treee55e816118d1c49819c0babce007f9b16713904a /llvm/lib/CodeGen/MachineScheduler.cpp
parentb64f71b0296f45bd2a527a5da37b2692f665fcb3 (diff)
downloadbcm5719-llvm-f6ccde781004295dc031b86ee1f19a367130db70.tar.gz
bcm5719-llvm-f6ccde781004295dc031b86ee1f19a367130db70.zip
Thread safety analysis: Fix crash for function pointers
For function pointers, the FunctionDecl of the callee is unknown, so getDirectCallee will return nullptr. We have to catch that case to avoid crashing. We assume there is no attribute then. llvm-svn: 342519
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud