[all-commits] [llvm/llvm-project] ee3da8: [AMDGPU] Fix null-dereference static analysis warn...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Tue Jan 26 07:48:38 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ee3da8958a6400fb919345c75ccda684da3fd663
https://github.com/llvm/llvm-project/commit/ee3da8958a6400fb919345c75ccda684da3fd663
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2021-01-26 (Tue, 26 Jan 2021)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
Log Message:
-----------
[AMDGPU] Fix null-dereference static analysis warnings. NFCI.
Avoid repeated calls to isZeroValue() and check for a null pointer before dereferencing a dyn_cast<>.
More information about the All-commits
mailing list