[all-commits] [llvm/llvm-project] d46218: Fix "pointer is null" static analyzer warning. NFCI.
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Jan 9 04:44:26 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d462185e8daa49889c31c8f5568749e379a5ddf9
https://github.com/llvm/llvm-project/commit/d462185e8daa49889c31c8f5568749e379a5ddf9
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-01-09 (Thu, 09 Jan 2020)
Changed paths:
M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
Log Message:
-----------
Fix "pointer is null" static analyzer warning. NFCI.
Use cast<> instead of dyn_cast<> since we know that the pointer should be valid (and is dereferenced immediately below).
Commit: 25dd99fab205619ef90d0da23bcfba3c9f762e5e
https://github.com/llvm/llvm-project/commit/25dd99fab205619ef90d0da23bcfba3c9f762e5e
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-01-09 (Thu, 09 Jan 2020)
Changed paths:
M llvm/lib/IR/Verifier.cpp
Log Message:
-----------
Fix "pointer is null" static analyzer warning. NFCI.
Use cast<> instead of dyn_cast<> since we know that the pointer should be valid (and is dereferenced immediately).
Compare: https://github.com/llvm/llvm-project/compare/cd5da94d80b2...25dd99fab205
More information about the All-commits
mailing list