diff options
author | Aaron Puchert <aaronpuchert@alice-dsl.net> | 2018-09-19 00:19:38 +0000 |
---|---|---|
committer | Aaron Puchert <aaronpuchert@alice-dsl.net> | 2018-09-19 00:19:38 +0000 |
commit | f6ccde781004295dc031b86ee1f19a367130db70 (patch) | |
tree | e55e816118d1c49819c0babce007f9b16713904a /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | b64f71b0296f45bd2a527a5da37b2692f665fcb3 (diff) | |
download | bcm5719-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