HomePhabricator

[SelectionDAG] Use INT_MIN as (1 << 31) is UB for signed integers. NFCI.

Description

[SelectionDAG] Use INT_MIN as (1 << 31) is UB for signed integers. NFCI.

Details

Committed
RKSimonMay 3 2019, 4:32 AM
Parents
rL359872: [SelectionDAG] computeKnownBits - remove some duplicate/shadow variables. NFCI.
Branches
Unknown
Tags
Unknown

Event Timeline

There is no compiler warning to catch this UB?

There is no compiler warning to catch this UB?

cppcheck reports it but I haven't seen anything else do so.