[all-commits] [llvm/llvm-project] 6aa10a: [Transforms] visitCmpBlock - don't dereference a d...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Oct 8 12:29:58 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6aa10ae5bfd885a71d68d54363d338f35e8aad58
https://github.com/llvm/llvm-project/commit/6aa10ae5bfd885a71d68d54363d338f35e8aad58
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-10-08 (Thu, 08 Oct 2020)
Changed paths:
M llvm/lib/Transforms/Scalar/MergeICmps.cpp
Log Message:
-----------
[Transforms] visitCmpBlock - don't dereference a dyn_cast<>. NFCI.
Use cast<> as we immediately dereference the pointer afterwards - cast<> will assert if we fail.
Prevents clang static analyzer warning that we could deference a null pointer.
More information about the All-commits
mailing list