[all-commits] [llvm/llvm-project] 795aeb: [Inliner][NFC] Remove redundant nullptr check
Alex MacLean via All-commits
all-commits at lists.llvm.org
Tue Mar 7 17:22:56 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 795aebf3883112764658cdeb1cf94cc5ea91bb28
https://github.com/llvm/llvm-project/commit/795aebf3883112764658cdeb1cf94cc5ea91bb28
Author: Alex MacLean <amaclean at nvidia.com>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths:
M llvm/lib/Transforms/IPO/Inliner.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list