HomePhabricator

Use cast<> instead of dyn_cast<> as we dereference the pointer immediately.

Authored by RKSimon on Oct 30 2020, 7:27 AM.

Description

Use cast<> instead of dyn_cast<> as we dereference the pointer immediately. NFCI.

Fix clang static analyzer warning - we know that the arg should be ConstantInt and we're better off relying on cast<> asserting on failure rather than a null dereference crash.

Details

Committed
RKSimonOct 30 2020, 7:33 AM
Parents
rG5bf45ee1568e: BitcodeReader::popValue - pass SmallVectorImpl<> as const reference. NFCI.
Branches
Unknown
Tags
Unknown