[all-commits] [llvm/llvm-project] 19c505: Fix "pointer is null" static analyzer warnings. NFCI.
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Jan 16 05:03:50 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 19c5057e8df62e75b26e881dfc8f8f32686fe75c
https://github.com/llvm/llvm-project/commit/19c5057e8df62e75b26e881dfc8f8f32686fe75c
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-01-16 (Thu, 16 Jan 2020)
Changed paths:
M clang/lib/CodeGen/CodeGenModule.cpp
Log Message:
-----------
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.
Commit: 23a887b0dd48639716b78a1c9ca665df49f64b2e
https://github.com/llvm/llvm-project/commit/23a887b0dd48639716b78a1c9ca665df49f64b2e
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-01-16 (Thu, 16 Jan 2020)
Changed paths:
M llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp
Log Message:
-----------
Fix unused variable warning. NFCI.
Compare: https://github.com/llvm/llvm-project/compare/39d6b6c21f74...23a887b0dd48
More information about the All-commits
mailing list