diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2025-06-26 06:55:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-26 06:55:48 -0400 |
commit | d3fd7921d4d7158a487bdc839c9fa6c3b650b997 (patch) | |
tree | 062d33177f809ad279b879a603a9f4f3ed0a5e03 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | a19ddff980136835fead07b346bd83e9211124a0 (diff) | |
download | llvm-d3fd7921d4d7158a487bdc839c9fa6c3b650b997.zip llvm-d3fd7921d4d7158a487bdc839c9fa6c3b650b997.tar.gz llvm-d3fd7921d4d7158a487bdc839c9fa6c3b650b997.tar.bz2 |
Clarify some code based on static analysis complaints; NFC (#145679)
In one case, we have a null pointer check that's unnecessary because the
only caller of the function already asserts the value is non-null.
In the other case, we've got an anti-pattern of `is` followed by `get`.
The logic was easier to repair by changing `get` to `cast`.
Neither case is a functional change.
Fixes #145525
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions