HomePhabricator

Don't dereference from a dyn_cast<>. NFCI.

Authored by RKSimon on Sep 14 2020, 5:04 AM.

Description

Don't dereference from a dyn_cast<>. NFCI.

Use cast<> instead which will assert if it fails and not just return null.

Fixes clang static analyzer warning.

Details

Committed
RKSimonSep 14 2020, 5:05 AM
Parents
rG7448e64a790b: [llvm-readobj/elf] - Don't use unwrapOrError when reporting errors about…
Branches
Unknown
Tags
Unknown