[AddressSanitizer] Don't dereference dyn_cast<ConstantInt> results. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 20 Sep 2019 20:52:21 +0000 (20:52 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 20 Sep 2019 20:52:21 +0000 (20:52 +0000)
commit2e0c95edfe0fbbded0835c3e5ec341c9a28b30e6
tree9935b4bcb1f54a435d853d5c47707fc509d5b7e5
parent01a3080960eec85ca85467a3930e30ac3e93ca0c
[AddressSanitizer] Don't dereference dyn_cast<ConstantInt> results. NFCI.

The static analyzer is warning about potential null dereference, but we can use cast<ConstantInt> directly and if not assert will fire for us.

llvm-svn: 372429
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp