[all-commits] [llvm/llvm-project] fd8ded: Fix "pointer is null" static analyzer warning. NFCI.
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Fri Jan 10 09:41:50 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: fd8ded99fe6e9fcae2c98ccad25d6562c5fa8a14
https://github.com/llvm/llvm-project/commit/fd8ded99fe6e9fcae2c98ccad25d6562c5fa8a14
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-01-10 (Fri, 10 Jan 2020)
Changed paths:
M clang/lib/CodeGen/CGVTables.cpp
Log Message:
-----------
Fix "pointer is null" static analyzer warning. NFCI.
Use castAs<> instead of getAs<> since the pointer is dereferenced immediately below and castAs will perform the null assertion for us.
More information about the All-commits
mailing list