diff options
author | Vedant Kumar <vsk@apple.com> | 2017-12-06 19:21:10 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-12-06 19:21:10 +0000 |
commit | 606908aab53851d390a7a989779798216f91dadb (patch) | |
tree | 79347246f29f5a8f1737daf487c0ef0b7867620b /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 8465c38b1ecdb44eac9139a255f17eaae243b755 (diff) | |
download | llvm-606908aab53851d390a7a989779798216f91dadb.zip llvm-606908aab53851d390a7a989779798216f91dadb.tar.gz llvm-606908aab53851d390a7a989779798216f91dadb.tar.bz2 |
Remove no-op function pointer null checks, NFC
Null-checking functions which aren't marked weak_import is a no-op
(the compiler rewrites the check to 'true'), regardless of whether a
library providing its definition is weak-linked. If the deployment
target is greater than the minimum requirement, the availability markup
on APIs does not lower to weak_import.
Remove no-op null checks to clean up the code and silence warnings.
Differential Revision: https://reviews.llvm.org/D40812
llvm-svn: 319936
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions