HomePhabricator

[AddressSanitizer] Don't dereference dyn_cast<ConstantInt> results. NFCI.

Authored by RKSimon on Sep 20 2019, 1:52 PM.

Description

[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

Details

Committed
RKSimonSep 20 2019, 1:52 PM
Parents
rG01a3080960ee: [Docs] Move topics to new categories
Branches
Unknown
Tags
Unknown