[all-commits] [llvm/llvm-project] 879c12: Fix null dereference static analysis warning. NFCI.
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Tue Jan 26 08:23:59 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 879c12d95a27a62797aede2f7d4f1886ad439d5d
https://github.com/llvm/llvm-project/commit/879c12d95a27a62797aede2f7d4f1886ad439d5d
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2021-01-26 (Tue, 26 Jan 2021)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
Log Message:
-----------
Fix null dereference static analysis warning. NFCI.
Replace cast_or_null<> with cast<> as we immediately dereference the pointer afterward so we're not expecting a null pointer.
More information about the All-commits
mailing list