[Inliner][NFC] Remove redundant nullptr check
authorAlex MacLean <amaclean@nvidia.com>
Wed, 8 Mar 2023 01:10:15 +0000 (17:10 -0800)
committerMircea Trofin <mtrofin@google.com>
Wed, 8 Mar 2023 01:22:38 +0000 (17:22 -0800)
commit795aebf3883112764658cdeb1cf94cc5ea91bb28
treed3138fdbd28e3a256d5eaa4f32c5ff4f48245809
parent5195e14bc1222e1b3f1b7b43c04e1c1ac3504cb1
[Inliner][NFC] Remove redundant nullptr check

Remove the null pointer check on Callee since it is guaranteed to pass by the check
at the top of the loop which continues if Callee is null. While this change is somewhat
trivial, for what it's worth this check triggers Coverity warnings because it implies that
Callee might be null at this point even though it is dereferenced in the preceding code.

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D145463
llvm/lib/Transforms/IPO/Inliner.cpp