aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-01-15 16:40:20 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-01-16 13:02:40 +0000
commit19c5057e8df62e75b26e881dfc8f8f32686fe75c (patch)
tree5bd7d47bfc8a06b24c5db0a531296e27573a4874 /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parent39d6b6c21f744e9c2503aa267a2561032de1326c (diff)
downloadllvm-19c5057e8df62e75b26e881dfc8f8f32686fe75c.zip
llvm-19c5057e8df62e75b26e881dfc8f8f32686fe75c.tar.gz
llvm-19c5057e8df62e75b26e881dfc8f8f32686fe75c.tar.bz2
Fix "pointer is null" static analyzer warnings. NFCI.
Use castAs<> instead of getAs<> since the pointer is dereferenced immediately in all cases and castAs will perform the null assertion for us.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions