HomePhabricator

[X86] X86InstrInfo::optimizeCompareInstr - fix potential null dereference.

Description

[X86] X86InstrInfo::optimizeCompareInstr - fix potential null dereference.

Fixes clang static-analyzer warning.

Technically the MachineInstr *Sub might still be null if we're comparing zero (IsCmpZero == true), although this probably won't happen as SrcReg2 is probably == 0.

Details

Committed
RKSimonThu, Sep 5, 3:18 AM
Parents
rL371046: [OpenCL] Add image type handling for builtins
Branches
Unknown
Tags
Unknown