HomePhabricator

[VPlanSLP] Don't dereference a cast_or_null<VPInstruction> result. NFCI.

Authored by RKSimon on Sep 16 2019, 4:22 AM.

Description

[VPlanSLP] Don't dereference a cast_or_null<VPInstruction> result. NFCI.

The static analyzer is warning about a potential null dereference of the cast_or_null result, I've split the cast_or_null check from the ->getUnderlyingInstr() call to avoid this, but it appears that we weren't seeing any null pointers in the dumped bundles in the first place.

llvm-svn: 371975

Details

Committed
RKSimonSep 16 2019, 4:22 AM
Parents
rGbfe6b35c7079: [SLPVectorizer] Assert that we find a LastInst to silence analyzer null…
Branches
Unknown
Tags
Unknown