diff options
author | Guozhi Wei <carrot@google.com> | 2017-10-04 20:14:08 +0000 |
---|---|---|
committer | Guozhi Wei <carrot@google.com> | 2017-10-04 20:14:08 +0000 |
commit | eb301875b872f6276b2090ae2e535dfbf5942871 (patch) | |
tree | d6fe7957abddce9563c464185024fbab64d877f8 /llvm/lib/Support/Threading.cpp | |
parent | 2d9aa7432f0f3d2590970546d0eefde258f5709e (diff) | |
download | bcm5719-llvm-eb301875b872f6276b2090ae2e535dfbf5942871.tar.gz bcm5719-llvm-eb301875b872f6276b2090ae2e535dfbf5942871.zip |
[TargetTransformInfo] Check if function pointer is valid before calling isLoweredToCall
Function isLoweredToCall can only accept non-null function pointer, but a function pointer can be null for indirect function call. So check it before calling isLoweredToCall from getInstructionLatency.
Differential Revision: https://reviews.llvm.org/D38204
llvm-svn: 314927
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions