[all-commits] [llvm/llvm-project] ad2016: Fix "pointer is null" static analyzer warnings. NFCI.
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Sun Jan 12 07:49:46 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ad201691d5cc0f15f6f885f3847dcc6440ee3de5
https://github.com/llvm/llvm-project/commit/ad201691d5cc0f15f6f885f3847dcc6440ee3de5
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-01-12 (Sun, 12 Jan 2020)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
Log Message:
-----------
Fix "pointer is null" static analyzer warnings. NFCI.
Use cast<> instead of dyn_cast<> and move into its users where its dereferenced immediately.
More information about the All-commits
mailing list